One Hat Cyber Team
Your IP :
3.147.42.3
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
support
/
lib
/
Edit File:
output.py
import sys from typing import Callable import netaddr from rads.color import green, red, bold def err_exit(*args, file=sys.stderr, rcode=1, **kwargs): color_print(*args, color=red, file=file, **kwargs) sys.exit(rcode) def warn(*args, file=sys.stderr, color: Callable = red, **kwargs): color_print(*args, color=color, file=file, **kwargs) def print_listed(ipaddr: netaddr.IPAddress, listed: bool, where: str): """For printing whether an IP is listed in iptables""" print( f'The IP {ipaddr}', red('is listed') if listed else green('is not listed'), f'in {where}', ) def header(*args, color: Callable = bold, **kwargs): color_print(*args, color=color, **kwargs) def color_print(*args, color: Callable = red, **kwargs): out = color(*args) if isinstance(out, str): print(out, **kwargs) else: print(*out, **kwargs)
Simpan