Wi-Fi cracking with Kali Linux All In One
Wi-Fi cracking with Kali Linux All In One
Wi-Fi 无线网破解
netcat
$ sudo apt install netcat-traditional
https://www.kali.org/tools/netcat/
https://salsa.debian.org/debian/netcat
root@kali:~# nc.traditional -h
[v1.10-47]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
-b allow broadcasts
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-k set keepalive option on socket
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-q secs quit after EOF on stdin and delay of secs
-s addr local source address
-T tos set Type Of Service
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-C Send CRLF as line-ending
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive];
hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
demos
Python
在 Kali Linux
环境下如何使用 Python
破解 wifi:
用 Python 写的两个字典生成器,代码比较简单,不喜勿喷。
指定字典的最长和最短,然后盲目生成字典的生成器,包括数字
,大小写字母
,特殊符号
等。
字典也叫社会工程学
字典,是根据 name,age,birthday,mail 等生成字典的生成器。
#!/usr/bin/env python3
# coding: utf8
__author__ = 'xgqfrms'
__editor__ = 'vscode'
__version__ = '1.0.1'
__github__ = 'https://github.com/xgqfrms/Raspberry-Pi'
__git__ = 'https://github.com/xgqfrms/Raspberry-Pi.git'
__copyright__ = """
Copyright (c) 2012-2050, xgqfrms; mailto:xgqfrms@xgqfrms.xyz
"""
# *********************************************************
# 社会工程学字典生成器
# 根据 name,age,birthday,mail,qq等生成密码
# *********************************************************
import itertools
def input():
l=[]
name=raw_input('enter name>')
l.append(name)
net_name=raw_input('enter netname>')
try:
age=str(int(raw_input('enter age>')))
except:
print 'age must be a number.eg:44'
return input()
else:
l.append(age)
try:
birthday=str(int(raw_input('enter birthday>')))
except:
print 'birthday must be a number.eg:19900304'
return input()
else:
l.append(birthday)
mail=raw_input('enter mail>')
l.append(mail)
try:
qq=str(int(raw_input('enter qq>')))
except:
print 'qq must be number.eg:123321'
return input()
else:
l.append(qq)
other1=raw_input('enter other1>')
l.append(other1)
other2=raw_input('enter other2>')
l.append(other2)
return l
def dic():
p=[]
for x in xrange(8):
p.append((itertools.product([i for i in ans],repeat=x),))
return itertools.chain(*p)
def write():
file=raw_input('enter dic name>')
if file == '':
file='a1.txt'
print 'create dic file a1.txt'
f=open(file,'a')
for x in d:
for y in x:
f.write("".join(y))
f.write('\n')
f.close()
print 'Done'
ans=input()
d=dic()
write()
#!/usr/bin/env python
# *********************************************************
# 暴力字典生成器
# 支持自定位数生成,包括大小写字母、特殊符号和数字
# *********************************************************
import sys,string,itertools
def help():
print '[usage]: python mydic.py -h or --help to get help\n'
print '[usage]: python mydic.py mim max outfile\n'
print ' mim: mim dic length,must be a number\n'
print ' max: max dic length,must be a number\n'
print 'outfile: output filename'
def dic():
chars=string.printable[:-5]
p=[]
for i in xrange(min,max+1):
p.append((itertools.product(chars,repeat=i),))
return itertools.chain(*p)
def write():
f=open(file,'a')
for x in d:
for y in x:
f.write("".join(y))
f.write('\n')
f.close()
print 'Done'
while True:
if len(sys.argv)==4:
try:
min=int(sys.argv[1]);max=int(sys.argv[2])
except:
help()
sys.exit(1)
if min <= max:
d=dic()
file=sys.argv[3]
write()
sys.exit(0)
else:
print 'error:'+sys.argv[2]+'<'+sys.argv[1]
sys.exit(1)
elif len(sys.argv)==2:
if sys.argv[1].lower() == "-h" or sys.argv[1].lower() == "--help":
help()
sys.exit(0)
else:
help()
sys.exit(1)
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
https://github.com/xgqfrms/blogs/blob/gh-pages/pdf/wifi-cracking.py
https://github.com/xgqfrms/blogs/blob/gh-pages/pdf/Wi-Fi cracking.py
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17601837.html
未经授权禁止转载,违者必究!