mirror of
https://github.com/danielmiessler/SecLists
synced 2025-12-15 05:15:24 +01:00
20 lines
No EOL
365 B
Python
20 lines
No EOL
365 B
Python
#!/usr/bin/python3
|
|
|
|
text=open('os-names.txt').read().split('\n')
|
|
new_temp=[]
|
|
for i in text:
|
|
if " " in i:
|
|
new_temp.append(i.replace(" ", "-"))
|
|
new_temp.append(i.replace(" ", "_"))
|
|
else:
|
|
new_temp.append(i)
|
|
temp=[]
|
|
#print(new_temp)
|
|
for i in new_temp:
|
|
if i.lower() != i:
|
|
temp.append(i)
|
|
temp.append(i.lower())
|
|
else:
|
|
temp.append(i)
|
|
|
|
print('\n'.join(temp)) |