首先还是更新下系统

sudo apt-get update && sudo apt-get dist-upgrade -y

然后安装一些必要的软件

sudo apt-get install -y git hostapd haveged dnsmasq

这里使用create_ap来快速创建,所以先要安装下create_ap

新建一个目录Github

mkdir Github && cd Github

把create_ap源码克隆回来,查看README.md可以发现关于依赖的一些东西

## Dependencies

### General

* bash (to run this script)

* util-linux (for getopt)

* procps or procps-ng

* hostapd

* iproute2

* iw

* iwconfig (you only need this if 'iw' can not recognize your adapter)

* haveged (optional)

### For 'NATed' or 'None' Internet sharing method

* dnsmasq

* iptables

执行以下命令克隆

git clone https://github.com/oblique/create_ap.git

切换到相应目录进行编译安装

cd create_ap

make install

然后尝试创建wifi,这里给出了很多种创建的方案

## Installation

### Generic

git clone https://github.com/oblique/create_ap

cd create_ap

make install

### ArchLinux (AUR)

yaourt -S create_ap

### Gentoo

emerge layman

layman -f -a jorgicio

emerge net-wireless/create_ap

## Examples

### No passphrase (open network):

create_ap wlan0 eth0 MyAccessPoint

### WPA + WPA2 passphrase:

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

### AP without Internet sharing:

create_ap -n wlan0 MyAccessPoint MyPassPhrase

### Bridged Internet sharing:

create_ap -m bridge wlan0 eth0 MyAccessPoint MyPassPhrase

### Bridged Internet sharing (pre-configured bridge interface):

create_ap -m bridge wlan0 br0 MyAccessPoint MyPassPhrase

### Internet sharing from the same WiFi interface:

create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase

### Choose a different WiFi adapter driver

create_ap --driver rtl871xdrv wlan0 eth0 MyAccessPoint MyPassPhrase

### No passphrase (open network) using pipe:

echo -e "MyAccessPoint" | create_ap wlan0 eth0

### WPA + WPA2 passphrase using pipe:

echo -e "MyAccessPoint\nMyPassPhrase" | create_ap wlan0 eth0

### Enable IEEE 802.11n

create_ap --ieee80211n --ht_capab '[HT40+]' wlan0 eth0 MyAccessPoint MyPassPhrase

### Client Isolation:

create_ap --isolate-clients wlan0 eth0 MyAccessPoint MyPassPhrase

## Systemd service

Using the persistent [systemd](https://wiki.archlinux.org/index.php/systemd#Basic_systemctl_usage) service

### Start service immediately:

systemctl start create_ap

### Start on boot:

systemctl enable create_ap

先执行iw命令看下自己的网卡名称,我这里无线网卡显示的是wlx085700bd345b,有线网卡是enp0s3

sudo create_ap wlx085700bd345b enp0s3 @Freewifi --no-virt

这个模式是比较常用的模式,在无线网卡上创建一个热点,使用另外一个网卡共享网络给无线网卡达到联网的目的。--no-virt 参数表示不创建虚拟接口

如果执行之后显示 ERROR: Your adapter does not support AP (master) mode 基本上没戏,因为网卡不支持AP模式

执行之后发现报错

Config dir: /tmp/create_ap.wlx085700bd345b.conf.uajeRd30

PID: 7937

Network Manager found, set wlx085700bd345b as unmanaged device... DONE

Sharing Internet using method: nat

hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlx085700bd345b.conf.uajeRd30/hostapd_ctrl

Configuration file: /tmp/create_ap.wlx085700bd345b.conf.uajeRd30/hostapd.conf

nl80211: Driver does not support authentication/association or connect commands

nl80211: deinit ifname=wlx085700bd345b disabled_11b_rates=0

nl80211 driver initialization failed.

wlx085700bd345b: interface state UNINITIALIZED->DISABLED

wlx085700bd345b: AP-DISABLED

hostapd_free_hapd_data: Interface wlx085700bd345b wasn't started

Error: Failed to run hostapd, maybe a program is interfering.

If an error like 'n80211: Could not configure driver mode' was thrown

try running the following before starting create_ap:

nmcli r wifi off

rfkill unblock wlan

Doing cleanup.. done

根据错误信息发现wlx085700bd345b: AP-DISABLED,这句的意思是网卡的AP模式不可用,这个时候可以使用官方提供的另外一种方案

sudo create_ap --driver rtl871xdrv wlx085700bd345b enp0s3 @Freewifi --no-virt

这种方式是加载一个不同的驱动,继续执行发现依然报错

Config dir: /tmp/create_ap.wlx085700bd345b.conf.xLE76fDe

PID: 9662

Network Manager found, set wlx085700bd345b as unmanaged device... DONE

Sharing Internet using method: nat

hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlx085700bd345b.conf.xLE76fDe/hostapd_ctrl

Configuration file: /tmp/create_ap.wlx085700bd345b.conf.xLE76fDe/hostapd.conf

Line 4: invalid/unknown driver 'rtl871xdrv'

1 errors found in configuration file '/tmp/create_ap.wlx085700bd345b.conf.xLE76fDe/hostapd.conf'

Failed to set up interface with /tmp/create_ap.wlx085700bd345b.conf.xLE76fDe/hostapd.conf

Failed to initialize interface

Error: Failed to run hostapd, maybe a program is interfering.

If an error like 'n80211: Could not configure driver mode' was thrown

try running the following before starting create_ap:

nmcli r wifi off

rfkill unblock wlan

Doing cleanup.. done

提示不知道rtl871xdrv这个驱动,谷歌一下发现hostapd原版本并不支持RTL8188EUS的驱动,所以需要使用修改版的hostapd,这里先把原来的hostapd卸载

sudo apt-get remove hostapd -y

然后git回来修改好的hostapd源码

git clone https://github.com/christianeisendle/hostapd_rtl871xdrv

然后切换到对应目录编译安装

cd hostapd_rtl871xdrv/hostapd

make

sudo make install

然后继续执行

sudo create_ap --driver rtl871xdrv wlx085700bd345b enp0s3 @Freewifi --no-virt

执行成功显示这样的

Config dir: /tmp/create_ap.wlx085700bd345b.conf.G8midueO

PID: 14071

Network Manager found, set wlx085700bd345b as unmanaged device... DONE

Sharing Internet using method: nat

hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlx085700bd345b.conf.G8midueO/hostapd_ctrl

Configuration file: /tmp/create_ap.wlx085700bd345b.conf.G8midueO/hostapd.conf

drv->ifindex=5

l2_sock_recv==l2_sock_xmit=0x0x15ab010

+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2

rtl871x_set_key_ops

rtl871x_set_key_ops

rtl871x_set_key_ops

rtl871x_set_key_ops

Using interface wlx085700bd345b with hwaddr 08:57:00:bd:34:5b and ssid '@Freewifi'

rtl871x_set_wps_assoc_resp_ie

rtl871x_set_wps_beacon_ie

rtl871x_set_wps_probe_resp_ie

rtl871x_set_beacon_ops

rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, @Freewifi,9

rtl871x_set_acl

手机打开wifi测试,尝试连接后终端会显示

+rtl871x_get_sta_wpaie, 84:8e:0c:21:6a:ed is sta's address

wlx085700bd345b: STA 84:8e:0c:21:6a:ed IEEE 802.11: associated

wlx085700bd345b: STA 84:8e:0c:21:6a:ed RADIUS: starting accounting session 5799A18A-00000000

手机获取到的IP地址是192.168.12.×网段的,这个可以根据自己的需要修改,接下来测试记录http请求,我写了个脚本在这 https://github.com/kbdancer/snifferPanel

git回来之后执行

python sniff.py wlx085700bd345b就可以把http请求记录到数据库了,当然前提是你已经安装了脚本所需要的一些模块

最后放个图吧

终端显示http请求

sqlite3记录http请求

本文链接:https://www.92ez.com/?action=show&id=23389

!!! 转载请先联系non3gov@gmail.com授权并在显著位置注明作者和原文链接 !!! 小黑屋

提示:技术文章有一定的时效性,请先确认是否适用你当前的系统环境。

openwrt php wifi 钓鱼,Ubuntu 16.04快速创建钓鱼wifi(RTL8188EUS网卡带http流量记录)相关推荐

  1. Ubuntu 16.04: 开启wifi设置 How To Enable WiFi In Ubuntu 16.04

    Enable WiFi in Ubuntu 16.04. How to enable WiFi in Ubuntu, using Terminal (command line). Fix " ...

  2. 如何在Ubuntu 16.04中创建GIF动图

    大 家经常在新浪微薄.QQ.facebook.twitter 中看到有趣的 GIF 动图吧,GIF 文件比视频小.比静态 JPG 图片形像生动,非常适于互联网上的搞笑帖子.产品展示和功能步骤演示,所以 ...

  3. 如何在Ubuntu 16.04上创建多节点MySQL集群(MySQL-Cluster)

    翻译转载:https://www.digitalocean.com/community/tutorials/how-to-create-a-multi-node-mysql-cluster-on-ub ...

  4. linux连接校园网wifi,Linux/Ubuntu 16.04 使用校园网客户端Dr.com DrClient 有线连网,同时开启WiFi热点...

    前面写过Ubuntu 16.04 使用校园网客户端 DrClient 无线上网,在这篇文章中将要介绍下,在Ubuntu 16.04上如何使用校园网客户端实现有线登录,这个问题也让博主困惑了很久,但是问 ...

  5. ubuntu 16.04连不上wifi解决了

    昨天下载了ubuntu16.0.4,安装后发现没有wifi可连接,于是上网查了一个晚上,都没有可行的办法.无奈今早就又下载ubuntu15.10安装,发现可以连wifi.用了一会突然桌面没了.我的天! ...

  6. linux怎么生成图形,如何在Ubuntu 16.04中创建GIF动态图片

    大家经常在新浪微薄.QQ.facebook.twitter 中看到有趣的 GIF 动图吧,GIF 文件比视频小.比静态 JPG 图片形像生动,非常适于互联网上的搞笑帖子.产品展示和功能步骤演示,所以此 ...

  7. 联想拯救者安装Ubuntu 16.04 系统时显示WiFi无法连接被禁用

    在终端输入 rfkill list all 会出现: 可以看到,优先级前的ideapad_wlan的Hard blocked 默认为yes,即ubuntu默认关闭了硬件wifi开关,而联想拯救者的wi ...

  8. ubuntu 16.04安装TP-LINK TL-WDN5200H无线USB网卡驱动

    TP-LINK TL-WDN5200H无线USB网卡驱动没有自带ubuntu系统的驱动 参考如下两篇文章后搞定: 1.https://blog.csdn.net/F_BQ333/article/det ...

  9. repost ubuntu 16.04安装TP-LINK TL-WDN5200H无线USB网卡驱动

    https://blog.csdn.net/cjgfkd/article/details/90299831?depth_1-utm_source=distribute.pc_relevant.none ...

最新文章

  1. 【Android 应用开发】Paint 图形组合 Xfermod 之 合成模式表示方法 ( Xfermod 使用步骤 | 透明度 颜色值 公式表示方法 | 老版本表示方法 | 合成区域分块 )
  2. Jquery获取外网IP
  3. 交换两个数组的元素使之总和的差值最小
  4. Hiveduino编程电子积木平台产品介绍宣传视频
  5. neo4j 在centos 中的安装
  6. Equipment upload - ERP inbound的debug
  7. java基础——equals及==的区别
  8. new Date()时间
  9. ​如何判断公司是否靠谱?
  10. Python学习笔记之Windows下通过pip安装Django详细介绍
  11. css的工作原理及使用规则
  12. poj Balanced Lineup RMQ
  13. Java调用python的程序
  14. 关于Oracle10g归档参数的研究
  15. 任玉刚——百度资深工程师学习之路
  16. 第五届山东理工大学ACM网络编程擂台赛
  17. 磨刀不误砍柴工—ElasticSearch的schema详解
  18. 基于mysql+php的英语四六级过级成绩管理
  19. 手机中的RAM和ROM分别对应电脑的内存和硬盘
  20. ASP中Err.number返回的错误代码解释大全

热门文章

  1. Using a password on the command line interface can be insecure,mysql报错解决办法
  2. 一级市场和二级市场的区别(本质就是申赎和买卖的区别)
  3. C语言:8位、16位、32位数据转换
  4. 基于MS的Dmol3模块计算离子液体的电子转移和成键
  5. 无阻塞情况connect生产EINPROGRESS错
  6. ssm演唱会订票系统毕业设计(附源码、运行环境)
  7. EF学习之路——1.EF介绍及架构搭建
  8. c语言扫雷(强化版)(可展开)(后附完整代码)
  9. 使用spring+html5实现安全传输随机数字密码键盘
  10. 个人学习笔记——庄懂的技术美术入门课(美术向)02