toolsprods / sniffvpn Goto Github PK
View Code? Open in Web Editor NEWTraffic monitor for your VPN
License: GNU General Public License v3.0
Traffic monitor for your VPN
License: GNU General Public License v3.0
.' ____ \ () .' ..].' ..| | | | __ |_ |_ |
| (__ | .--. __ | | | | \ \ / / | |) || \ | |
_.__.[
.-. |[ '-| |-'-| |-' \ \ / / | _/ | |\ | |
| _) || | | | | | | | | | \ ' / | | | |\ |
.[||[**[_] [] _/ |**| |___|____|
[---] SniffVPN - Traffic monitor for your VPN [---]
[---] Created by: Alvaro Nunez (toolsprods) [---]
[---] Version: 0.1 [---]
[---] Codename: 'Alfa Version' [---]
[---] Follow me on GitHub: github.com/toolsprods/ [---]
[] Running server at 10.8.0.1:8000...
[] Can see statics and logs at 10.8.0.1:8000/panel
10.8.0.1 - - [05/Jul/2016 20:15:06] "GET /panel HTTP/1.1" 301 -
10.8.0.1 - - [05/Jul/2016 20:15:06] "GET /panel/ HTTP/1.1" 200 -
10.8.0.1 - - [05/Jul/2016 20:15:06] "GET /panel/css/theme.css HTTP/1.1" 200 -
10.8.0.1 - - [05/Jul/2016 20:15:07] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:07] "GET /favicon.ico HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:07] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:07] "GET /favicon.ico HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:16] "GET /panel/js/functions.js HTTP/1.1" 200 -
10.8.0.1 - - [05/Jul/2016 20:15:16] "GET /panel/js/jquery.bootpag.min.js HTTP/1.1" 200 -
10.8.0.1 - - [05/Jul/2016 20:15:17] "GET /panel/css/helveticaneue.woff HTTP/1.1" 200 -
10.8.0.1 - - [05/Jul/2016 20:15:17] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:17] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:17] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:17] "GET /panel/data/logs.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:17] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:17] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:22] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:22] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:25] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:25] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:15:27] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:15:27] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:23:44] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:23:44] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
10.8.0.1 - - [05/Jul/2016 20:23:45] code 404, message File not found
10.8.0.1 - - [05/Jul/2016 20:23:45] "GET /panel/data/vtanalyzer.json HTTP/1.1" 404 -
Traceback (most recent call last):
File "SniffVPN.py", line 113, in
main()
File "SniffVPN.py", line 109, in main
sniff(iface=interface, prn=packet, count=count)
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 586, in sniff
r = prn(p)
File "SniffVPN.py", line 79, in packet
iporig=getOriginalIP(ipsrc)
File "SniffVPN.py", line 89, in getOriginalIP
file=open('/var/log/openvpn-status.log','r')
IOError: [Errno 2] No such file or directory: '/var/log/openvpn-status.log'
Two files seams missing in the folder /data
/panel/data/logs.json
/panel/data/vtanalyzer.json
or should be created....
.---..-. .-,-,---,---.-. .-,---. .-. .-.
( .-._| \| |(| .-| .-'\ \ / /| .-.\| \| |
(_) \ | | (_| `-| `-. \ V / | |-' | | |
_ \ \ | |\ | | .-| .-' ) / | |--'| |\ |
( `-' )| | |)| | | | | (_) | | | | |)|
`----' /( (_`-)\| )\| /( /( (_)
(__) (__)(__) (__) (__)
[---] SniffVPN - Traffic monitor for your VPN [---]
[---] Created by: Alvaro Nunez (toolsprods) [---]
[---] Version: 0.1 [---]
[---] Codename: 'Alfa Version' [---]
[---] Follow me on GitHub: github.com/toolsprods/ [---]
[] Running server at 10.8.0.1:8000...
[] Can see statics and logs at 10.8.0.1:8000/panel
Traceback (most recent call last):
File "SniffVPN.py", line 113, in
main()
File "SniffVPN.py", line 109, in main
sniff(iface=interface, prn=packet, count=count)
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 586, in sniff
r = prn(p)
File "SniffVPN.py", line 79, in packet
iporig=getOriginalIP(ipsrc)
File "SniffVPN.py", line 94, in getOriginalIP
return ipOrig[2].split(':')[0]
UnboundLocalError: local variable 'ipOrig' referenced before assignment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.