How to make your own hacking tool using python || Nmap || hacking using python || Code Hub
Want to code like Iron Man , You are at the right place , take a look at our channel
If you have any doubt then feel free to join our discord server and clarify your doubts
DISCORD: https://discord.gg/2ge2BGaT #hacking #nmap #portscanner #codehub
full code with explanation is available in github link given below:
github: https://github.com/MRMYSTERY003/port-scnner
make your own nmap scanning tool using python just 20 lines of code
######BEFOR RUNNING THE CODE :
install a module called IPy using the following command in the command prompt
pip install IPy
PORTSCANNER:
port scanner made by python can be used like nmap to find the open ports of the target just three simple steps first enter the number of ports to be scanned then enter the rate of the scan by default it is fixed to 0.3 (NOTE : the larger the rate the accurate the scan will be) third enter the targets web address or ip address and hit enter the open ports will be printer if banner is available it is also printed , you can provide mulitple targets using
###code####
import socket
from IPy import IP
def scan(sip, num, rate = 0.3):
try:
checked_ip = check_ip(sip)
for port in range(1, num):
port_scan(checked_ip, port, rate)
print('\nscan completed ....')
except:
print('invalide address : ' + sip)
def get_banner(s):
return s.recv(1024)
def check_ip(cip):
try:
IP(cip)
return cip
except ValueError:
return socket.gethostbyname(cip)
def port_scan(sip, port, rate):
try:
sock = socket.socket()
sock.settimeout(rate)
sock.connect((sip, port))
try:
banner = get_banner(sock)
print("\n[+] open port "+str(port)+" of "+str(sip)+" : "+str(banner.decode().strip('\n')))
except:
print("\n[+] open port "+str(port)+" of "+str(sip))
except:
print('#',end = '')
if __name__ == "__main__":
num = int(input('\nEnter the number of ports needed to be scanned: '))
rate = float(input('enter the rate of scan(0.3 - 1) (note the more fasert the scan the less accurate the scan will be) default (rate = 0.3) : ' ) or '0.3')
ip_add = input("ENTER THE TARGET/s (use ',' to specify multiple targets) : ")
print('searching for open ports pls wait........')
if ',' in ip_add:
for ip in ip_add.split(','):
scan(ip.strip(' '), num)
else:
scan(ip_add, num, rate)
####code end####
How to make your own hacking tool using python || Nmap || hacking using python || Code Hub
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to make your own hacking tool using python || Nmap || hacking using python || Code Hub», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.