Skip to content

Commit 9f22efb

Browse files
committed
bug fix, setup added
1 parent 8e5527b commit 9f22efb

27 files changed

+83
-19
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ Manual install via git :
1717
```bash
1818
$ git clone https://github.com/websploit/websploit.git
1919
$ cd websploit
20-
$ python -m pip install requirements.txt
21-
$ python websploit.py
20+
$ python setup.py install
21+
```
22+
Execute via command line :
23+
```bash
24+
$ websploit
2225
```
2326

2427
install via `apt` coming soon ...

core/utils/version.py

-1
This file was deleted.

modules/.DS_Store

-6 KB
Binary file not shown.

setup.py

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import codecs
2+
from setuptools import setup, find_packages
3+
4+
WEBSPLOIT_VERSION = "4.0.2"
5+
WEBSPLOIT_DOWNLOAD = ('https://github.com/websploit/websploit/tarball/' + WEBSPLOIT_VERSION)
6+
7+
8+
def read_file(filename):
9+
"""
10+
Read a utf8 encoded text file and return its contents.
11+
"""
12+
with codecs.open(filename, 'r', 'utf8') as f:
13+
return f.read()
14+
15+
def read_requirements():
16+
with open('requirements.txt') as f:
17+
return f.readlines()
18+
19+
20+
setup(
21+
name='websploit',
22+
packages=[
23+
'websploit',
24+
'websploit.modules',
25+
'websploit.core',
26+
'websploit.core.base',
27+
'websploit.core.utils'],
28+
29+
version=WEBSPLOIT_VERSION,
30+
description='Websploit is a high level MITM framework',
31+
long_description=read_file('README.md'),
32+
long_description_content_type='text/markdown',
33+
# packages = find_packages(),
34+
entry_points ={
35+
'console_scripts': [
36+
'websploit = websploit.websploit:start_wsf'
37+
]
38+
},
39+
40+
license='MIT',
41+
author='Fardin Allahverdinazhand',
42+
author_email='[email protected]',
43+
url='https://github.com/websploit/websploit',
44+
download_url=WEBSPLOIT_DOWNLOAD,
45+
keywords=['python3', 'websploit', 'wsf', 'MITM', 'wifi', 'arp spoof'],
46+
classifiers=[
47+
'Intended Audience :: Developers',
48+
'License :: OSI Approved :: MIT License',
49+
'Programming Language :: Python :: 3.5',
50+
'Programming Language :: Python :: 3.6',
51+
'Programming Language :: Python :: 3.7',
52+
'Programming Language :: Python :: 3.8',
53+
'Natural Language :: English',
54+
],
55+
56+
install_requires= read_requirements(),
57+
58+
)

Pipfile websploit/Pipfile

File renamed without changes.
File renamed without changes.
File renamed without changes.

websploit/core/__init__.py

Whitespace-only changes.

core/base/Base.py websploit/core/base/Base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cmd
22
import sys
3-
from modules import all_modules, module_list
4-
from core.utils import CPrint
3+
from websploit.modules import all_modules, module_list
4+
from websploit.core.utils import CPrint
55

66
completions = [
77
'target',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

websploit/core/utils/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "4.0.2"
File renamed without changes.

modules/arp_spoof.py websploit/modules/arp_spoof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from scapy.all import *
2-
from core.utils import get_mac, enable_ip_forward
2+
from websploit.core.utils import get_mac, enable_ip_forward
33
from time import sleep
4-
from core import base
4+
from websploit.core import base
55

66
conf.verb = 0
77

modules/http_sniffer.py websploit/modules/http_sniffer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cmd
22
from scapy.all import *
33
from scapy.layers.http import HTTPRequest
4-
from core import base
4+
from websploit.core import base
55

66
conf.verb = 0
77

modules/scan_network.py websploit/modules/scan_network.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from scapy.all import *
2-
from core import base
2+
from websploit.core import base
33

44
conf.verb = 0
55

modules/scan_wifi.py websploit/modules/scan_wifi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from scapy.all import *
2-
from core import base
2+
from websploit.core import base
33
from wifi import Cell
44

55
conf.verb = 0

modules/wifi_deauth.py websploit/modules/wifi_deauth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from scapy.all import *
2-
from core import base
2+
from websploit.core import base
33

44
conf.verb = 0
55

modules/wifi_fap.py websploit/modules/wifi_fap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from scapy.all import *
2-
from core import base
2+
from websploit.core import base
33

44
conf.verb = 0
55

modules/wifi_fap_spam.py websploit/modules/wifi_fap_spam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from scapy.all import *
2-
from core import base
2+
from websploit.core import base
33
from threading import Thread
44
from faker import Faker
55

websploit.py websploit/websploit.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/python3
22
# check dependencies before start
3-
from core.utils import check_dependencies
3+
from .core.utils import check_dependencies
44
check_dependencies()
55

66
import cmd
77
import os
8-
from modules import *
9-
from modules import module_list, all_modules
10-
from core.utils import logo, CPrint, about, update
8+
from .modules import *
9+
from .modules import module_list, all_modules
10+
from .core.utils import logo, CPrint, about, update
1111

1212

1313
completions = module_list()
@@ -69,8 +69,11 @@ def do_update(self, line):
6969
update(where="update_command")
7070

7171

72-
if __name__ == '__main__':
72+
def start_wsf():
7373
try:
7474
Main().cmdloop()
7575
except KeyboardInterrupt:
76-
print("\nBye!")
76+
print("\nBye!")
77+
78+
if __name__ == '__main__':
79+
start_wsf()

0 commit comments

Comments
 (0)