reaver (8)

按行数分割

有个文件要处理,因为很大,所以想把它切成若干份,每份N行,以便并行处理。怎么搞呢?查了下强大的shell,果然有现成的工具--split。下面记录下基本用法:   split [-bl] file [prefix]   参数说明:-b, --bytes=SIZE:对file进行切分,每个小文件大小为SIZE。可以指定单位b,k,m。-l, --lines=NUMBER:对file进行切分,每个文件有NUMBER行。 prefix:分割后产生的文件名前缀。   示例: 假设要切分的文件为test.2012-08-16_17,大小1.2M,12081行。 1)   split -l 5000 test.2012-08-16_17   生成xaa,xab,xac三个文件。wc -l 看到三个文件行数如下:5000 xaa5000 xab2081 xac 总计 2)  split -b 600k test.2012-08-16_17   生成xaa,xab两个文件ls -lh 看到 两个文件大小如下:600K xaa xab 3)   split -b 500k test.2012-08-16_17 example   得到三个文件,文件名的前缀都是examplels -lh 看到文件信息如下:500K exampleaa500K exampleab154K exampleac
Read more...

Remove duplicates line from files

perl -ne 'print unless $a{$_}++' file > out put file awk '{a[$1]} END {for(i in a) print i}' filename > out put file sort myfile.txt | uniq > out put file awk '!_[$0]++' file ruby -00 -ne 'puts $_.split("\n").uniq' file perl -ne 'print unless $a{$_}++' file sed '$!N; /^\(.*\)\n\1$/!P; D'
Read more...

使用UltraEdit处理超大文件

UE可以处理几乎任意大小的文件,当你想阅读GB级别的LOG文件时,UE时很好的选择。 1.关闭行号显示 关闭行号显示可以让你更快的打开一个大型文件。 2.不使用临时文件 不使用临时文件可以减少加载大型文件的时间。你可以设置阈值来合理使用这个功能。 3.关闭文件检测和转换 最后,关闭文件检测和转换功能,就能快捷的打开大型文件了。 设置好以后,我们用一个4GB的文件来做测试。 这是我们要打开的文件: 用UE打开:
Read more...

BlackScreen Problem In BackTrack 5 R2 After StartX

BackTrack 5 R3: Black Screen After Startx/Caps Lock Blinks/USB Thumb Drive Boot Problem Well, I have to say up front, this took me a couple of hours to resolve. It appears that this issue is quite common, but I found, literally no complete resolution to this issue anywhere on the Internet. Here is what I tried to do:I was trying to make a bootable USB drive with BackTrack 5 R3 on it. Here is what I did to get that done:1. Get unetbootin and the ISO of backtrack.2. Run unetbootin and select the ISO of backtrack and the USB stick…
Read more...

reaver 命令

  PIN码 PJ简单解释:     PIN码分前4和后4,先破前4只有最多一万个组合,破后4中的前3只有一千个组 合,一共就是一万一千个密码组合。 10的4次方+10的3次方=11000个密码组合。     当reaver确定前4位PIN密码后,其任务进度数值将直接跳跃至90.9%以上,也就是 说只剩余一千个密码组合了。总共一万一千个密码! 学习过程 1.在虚拟机找到点击打开。如果电脑装有多个无线网卡,请先发指令 ifconfig -a   确认你用哪一个网卡WLAN0或是WLAN1   (下面的指令都是以单一网卡WLAN0为例) 2.出现root Shell窗口。敲入第一条命令“ifconfig wlan0 up” 加载 usb网卡。   接下来“airmon-ng start wlan0” 监听模式已激活到了 mon0。 如果出现网卡没有正确加载,8187驱动RF-kill的参考后记1解决问题。 3.第二条命令“airodump-ng mon0” 查看周边路由 /AP的信息。 记录下你要学习的路由MAC地址。提供几个查看可以使用PIN码学习路由的方法。 特别提示:只有AP开启了WPS、QSS功能,才可以用PIN法学习PSK密码!如何查看 AP是否开了WPS、QSS呢提供几个小方法? a) reaver1.3下使用使用命令walsh -imon0-C 查看针对xiaopangOS3.2版本 b) reaver1.4下用新的指令:WASH -i mon0 -C  C是大写在wps locked一项中有显示的。 c) WIN7下,用通常的方式连接AP,如果在提示输入密码框下面,出现“通过按路由器 按钮也可以连接”,就确认此AP开了WPS、QSS。 d) 在螃蟹软件中——可用网络——模式下带N,G的这个不是很准 最准确的是下面这个选项 点击PIN输入配置,选择接入点,哈哈出来了吧,这里面都是可以学习的目标。 需要注意的是,查看后面有的是不支持pin码连接的,这样的就别弄了,后果你知道。 1. 重新开启一个root Shell窗口,第三条命令“reaver -i mon0 -b MAC -a -S -vv” 抓PIN 码。注意,MAC中冒号不可省略,MAC地址的字母大小写均可,-S是大写字母, -vv 是两个V不是W! -i 监听后接口名称 -b 目标mac地址 -a 自动检测目标AP最佳配置 -S 使用最小的DH key(可以提高PJ速度) -vv 显示更多的非严重警告 -d 即delay每穷举一次的闲置时间 预设为1秒 -t 即timeout每次穷举等待反馈的最长时间 -c指定频道可以方便找到信号,如-c1 指定1频道,大家查看自己的目标频道做相应修改 (非TP-LINK路由推荐–d9 –t9参数防止路由僵死 reaver -i mon0 -b MAC -a -S –d9 –t9…
Read more...

reaver 安装 穷举PIN

Reaver目前只支持以下网卡:   The following wireless drivers have been tested or reported to work successfully with Reaver: ath9k rtl8187 carl19170 ipw2000 rt2800pci rt73usb   安装 bt5 到硬盘 下载bt5 cd  - 运行  进入界面 选择安装   安装reaver 输入: cd Desktop 然后输入: svn checkout http://reaver-wps.googlecode.com/svn/trunk/ reaver-wps-read-only 依次输入: cd reaver-wps-read-only cd src ./configure make make install   另外如果安装过程中出现bash: ./configure: Permission denied,不要着急这是linux下常见问题 运行 chmod +x configure,然后再运行./configure 或 sh ./configure   开启监听模式,并搜索支持wps的ap, 支好天线,准备开始干活。   输入: airmon-ng start wlan0 输入: wash -i mon0 -C (注意大小写) 查看支持WPS的AP 长时间无反应按Ctrl+C,结束进程 9.开始穷举: 输入: reaver -i mon0 -b MAC地址 -a -S -vv (注意大小写) 建议增加 -d 3 -t 3参数,防止路由WPS被跑死,导致穷举中止。 reaver -i mon0 -b MAC地址 -S -vv…
Read more...

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0009402904{main}( ).../index.php:0
20.07611320416Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07611320416Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.26192977376Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.26293001720Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.26403057048Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.26413074104require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.27173140856K2ControllerItemlist->execute( ).../k2.php:64
90.27173140856K2ControllerItemlist->display( ).../BaseController.php:710
100.27713229944K2ControllerItemlist->display( ).../itemlist.php:49
110.27713229944K2ControllerItemlist->display( ).../controller.php:19
120.27883248840Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.28143269576K2ViewItemlist->display( ).../ViewController.php:102
140.42884037000K2ViewItemlist->display( ).../view.html.php:1407
150.42884037000K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.43104107120include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701