Skip to content

Commit

Permalink
Update wifiinfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
suchsoak authored May 30, 2024
1 parent 2a729f9 commit 4e72d26
Showing 1 changed file with 74 additions and 61 deletions.
135 changes: 74 additions & 61 deletions wifiinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
⠠⠞⠑⠭⠞⠶⠠⠑⠙⠊⠞⠕⠗Github: https://github.com/suchsoak⠠⠞⠑⠭⠞⠶⠠⠑⠙⠊⠞⠕⠗
BY: suchsoak
v:1.0.3
v:1.0.4
'''

print(pattern)
Expand Down Expand Up @@ -116,72 +116,59 @@

time.sleep(1.0)

colorama.init()
print(Fore.MAGENTA)

nt1 = '''
|ooo===ooo===oooo==oooo===ooo===ooo===ooo|
|===ooo===ooo========+==oo===ooo===ooo===|
|====o====oo=+:... . ..:+=oo===ooo===|
|ooo===oo=:. ....... .:=o====ooo|
|====oo=: .:::::::::::+::. :+ooo===|
|===oo: .:+::. ..:+:. :=o===|
|ooo==. :+: ..::++:::. :+: .==ooo|
|===oo=+=+. :+=+::::::+++: +=+=oo===|
|===ooo==. :+:. .:+. :==ooo===|
|ooo===ooo++: .:+++::. :++=oo===ooo|
|===o====oo=. :+oo+:::=o=: .=o===o=o===|
|===ooo===oo=++=o=. +oo++=oo===ooo===|
|ooo===ooo====ooo: :=ooo===ooo===ooo|
|o=o====oo==o=oo=o:. ..==========o=====o|
|===ooo===ooo====oo=++=ooo===ooo===ooo===|
.−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−.
| ⠠⠞⠑⠭⠞⠶⠠⠑⠙⠊⠞⠕⠗Other Wifi Information⠠⠞⠑⠭⠞⠶⠠⠑⠙⠊⠞⠕⠗ |
'−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−'
'''
print(nt1)
print(Style.RESET_ALL)
search = os.system("nmcli")

wifi_info = nt.device.wifi()
if search == False:

for device in wifi_info:
nmcli = os.system("nmcli")

try:

wifi_mode = device.mode
wifi_bssid = device.bssid
print()
wifi_ssid = device.ssid
print()
time.sleep(2)
wifi_signal = device.signal
wifi_cha = device.chan
wifi_frequency = device.freq
wifi_security = device.security
wifi_general = device.general
if nmcli == True:

print(f"WiFi Mode: {wifi_mode}")
print(f"BSSID: {wifi_bssid}")
colorama.init()
print(Fore.MAGENTA)
print(f"SSID: {wifi_ssid}")
print(Style.RESET_ALL)
print(f"Signal Strength: {wifi_signal}")
print(f"WiFi Chang: {wifi_cha}")
print(f"wifi Frequency: {wifi_frequency}")
print(f"wifi Security: {wifi_security}")
print(f"wifi general: {wifi_general}")
print()

except Exception as error:
print(f"Error: {error}")
print("[*] You need install network-manager system.")

print("\t")
else:
print("")

wifi_info = nt.device.wifi()

for device in wifi_info:

try:

wifi_mode = device.mode
wifi_bssid = device.bssid
print()
wifi_ssid = device.ssid
print()
time.sleep(2)
wifi_signal = device.signal
wifi_cha = device.chan
wifi_frequency = device.freq
wifi_security = device.security
wifi_general = device.general

print(f"WiFi Mode: {wifi_mode}")
print(f"BSSID: {wifi_bssid}")
colorama.init()
print(Fore.MAGENTA)
print(f"SSID: {wifi_ssid}")
print(Style.RESET_ALL)
print(f"Signal Strength: {wifi_signal}")
print(f"WiFi Chang: {wifi_cha}")
print(f"wifi Frequency: {wifi_frequency}")
print(f"wifi Security: {wifi_security}")
print(f"wifi general: {wifi_general}")
print()

except Exception as error:
print(f"Error: {error}")

print("\t")

colorama.init()
print(Fore.MAGENTA)
colorama.init()
print(Fore.MAGENTA)
else:
pass

# Firewall Test

Expand Down Expand Up @@ -258,6 +245,32 @@
print("−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−")
print(Style.RESET_ALL)

elif r.status_code == 404:
colorama.init()
print(Fore.RED)
print("−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−")
print()
print("Tor is not found", "Status Code: " ,r.status_code)
print()
print("Proxy is not found!", "Status Code: " ,proxy.status_code)
print()
print("vpnproton is not found!", "Status Code: " ,vpnproton.status_code)
print()
print("free-proxy-list is not blocked!", "Status Code: " ,proxylist.status_code)
print()
print("Proxy_list2 is not blocked!", "Status Code: " ,proxylist2.status_code)
print()
print("OnWork is not blocked!", "Status Code: " ,OnWorks.status_code)
print()
print("NordVpn is not blocked!", "Status Code: " ,nordvpn.status_code)
print()
print("shodan is not blocked!", "Status Code: " ,shodan.status_code)
print()
print("zoomeye is not blocked!", "Status Code: " ,zoomeye.status_code)
print()
print("−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−")
print(Style.RESET_ALL)

elif r.status_code == 503:
colorama.init()
print(Fore.RED)
Expand Down

0 comments on commit 4e72d26

Please sign in to comment.