资源简介
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
相关资源
- 安卓wifi直连app源码
- wifi的ssid探测
- wifi局域网内双向语音实时通话
- 矿用多功能WiFi信号转换器的设计
- 基于WiFi技术的矿井信号收发器设计
- 爱普生(EPSON)L3151 3153 3156 3157 3158不
- RTL8188EVT USB WIFI无线网卡驱动 免费版
- wifi电路调试经验之谈
- Marvell 88W8686 WiFi模块的ADHOC热点创建代
- RT5350WIFI模组
- 基于Arduino和Machtalk的温棚环境监测系
- 卡皇RTL8187芯片网卡驱动 Win7 x86x64官方
-
lb li
nk随身wifi驱动 v1.1.3 官方版 - 基于ADS1298与WiFi的脑电信号采集与传输
- 经验分享:如何通过wifi标准选择
- WIFI车载影音导航系统方案设计
- stm32_WiFi智能家居.zip
- 华硕老毛子padavan固件使用dogcom完整教
- 真正的无需跑包无需PIN秒破解软件路
- wifi共享大师纯净去广告版强力共享校
- stm32103c8t6ESP8266串口转WIFI模块TCP服务器
- wifi暴力破解电脑(PC)版2.0官方安装
- wifi跑包密码字典,跑包字典,暴力破
- wifi字典完美
- 360随身wifi驱动,360wifi驱动,无广告版
- 360免费WIFI(适用于任意无线网卡)
- MT7601(小度wifi360wifimiwif) staap linux驱
- 全志xr819 wifi datasheet
- MediaTek-AP-MT7628DAN+MT7612E硬件开发包
- 2.4G蓝牙/WiFi-PCB天线封装(Cadence-Alle
评论
共有 条评论