资源简介
wifiphisher 学习研究用请勿用于非正当途径,此件乃网上
代码片段和文件信息
#!/usr/bin/env python
“““
This module tries to install all the required software.
“““
from __future__ import print_function
import sys
import os
from ctypes.util import find_library
from setuptools import setup find_packages Command
import wifiphisher.common.constants as constants
class CleanCommand(Command):
“““Custom clean command to tidy up the project root.“““
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system(‘rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info‘)
def get_dnsmasq():
“““
Try to install dnsmasq on host machine if not present
:return: None
:rtype: None
“““
if not os.path.isfile(“/usr/sbin/dnsmasq“):
install = raw_input((“[“ + constants.T + “*“ + constants.W + “] dnsmasq not found “ +
“in /usr/sbin/dnsmasq “ + “install now? [y/n] “))
if install == “y“:
if os.path.isfile(“/usr/bin/pacman“):
os.system(“pacman -S dnsmasq“)
elif os.path.isfile(“/usr/bin/yum“):
os.system(“yum install dnsmasq“)
else:
os.system(“apt-get -y install dnsmasq“)
else:
sys.exit((“[“ + constants.R + “-“ + constants.W + “] dnsmasq “ +
“not found in /usr/sbin/dnsmasq“))
if not os.path.isfile(“/usr/sbin/dnsmasq“):
dnsmasq_message = (“\n[“ + constants.R + “-“ + constants.W +
“] Unable to install the \‘dnsmasq\‘ package!\n“ + “[“ + constants.T +
“*“ + constants.W + “] This process requires a persistent internet “ +
“connection!\nPlease follow the link below to configure your “ +
“sources.list\n“ + constants.B + “http://docs.kali.org/general-use/“ +
“kali-linux-sources-list-repositories\n“ + constants.W + “[“ +
constants.G + “+“ + constants.W + “] Run apt-get update for changes “ +
“to take effect.\n“ + “[“ + constants.G + “+“ + constants.W + “] “ +
“Rerun the script to install dnsmasq.\n[“ + constants.R + “!“ +
constants.W + “] Closing“)
sys.exit(dnsmasq_message)
def get_hostapd():
“““
Try to install hostapd on host system if not present
:return: None
:rtype: None
“““
if not os.path.isfile(“/usr/sbin/hostapd“):
install = raw_input((“[“ + constants.T + “*“ + constants.W + “] hostapd not found in “ +
“/usr/sbin/hostapd install now? [y/n] “))
if install == “y“:
if os.path.isfile(“/usr/bin/pacman“):
os.system(“pacman -S hostapd“)
elif os.path.isfile(“/usr/bin/yum“):
os.system(“yum install hostapd“)
else:
os.system(“apt-get -y install hostapd“)
- 上一篇:Chisel教程.pdf
- 下一篇:MAX31856-STM32编程应用资料.zip
相关资源
- WIFIpineapp manual
- Device Provisioning Protocol v1.0
- 7620QAtool改wifi MAC地址
- 涂鸦万能遥控使用说明.pdf
- WIFI信号强度测试软件
- 嵌入式linux下QT开发的wifi源码
- RT5572双频WiFi模块(WL-UM01EBS-5572)规格
- AS608指纹模块和ESP8266wifi模块在STM32f
- 硬件-基于WiFi的网络授时时钟设计V1
- newifi3最新潘多拉固件
- DW1550 BCM94352HMB针脚屏蔽图_找不到蓝牙
- QCA9377-3 QCA1023 QDART User Guide
- ESP8266全部开发资料
- Wifi热点实现文件传输
- AX220XX-嵌入式网络单芯片wifi无线芯片
- WiFi智能小车设计报告
- 室内定位 WIFI Scan 源代码
- KT803C蓝牙wifi电信2G4G远程串口更新MP
- 4.12-4.15内核版本适用的rtl8821cu驱动,
- wifi DPP技术规范
- Kali Linux无线渗透工具集教程WiFi篇v4
- ESP8266 wifi模块驱动代码
- CDlinux-0.9.6.1-SSE-0429
- ESP8266原理图及库文件 altium designer
- 华为 E5375 4G便携wifi设备升级为5模三网
- RTL88x2BU_WiFi_linux_v5.1.7系列wifi驱动
- 802.11n的吞吐率、强健性和可靠性(带
- BCM94360CS2-WIN10-64.zip
- RTL8723BU芯片的 WIFI 和 蓝牙的 Linux 驱动
- 新三高恪路由开启NAT1.7z
评论
共有 条评论