Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirements.txt should include prompt_toolkit #3

Open
PSPhoster opened this issue Jul 24, 2024 · 0 comments
Open

requirements.txt should include prompt_toolkit #3

PSPhoster opened this issue Jul 24, 2024 · 0 comments

Comments

@PSPhoster
Copy link

if the prompt_toolkit is not already installed, launching netspionage results in this error:
python netspionage.py

"Seems like you haven't installed Requirements or You are not using python3 version."

running it from the python shell shows why it fails.
python3
Python 3.8.10 (default, Mar 25 2024, 10:42:49)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from core import prompts
Traceback (most recent call last):
File "", line 1, in
File "/home/xxxx/netspionage/core/init.py", line 1, in
from .prompts import *
File "/home/xxxx/netspionage/core/prompts.py", line 1, in
from prompt_toolkit import prompt
ModuleNotFoundError: No module named 'prompt_toolkit'

Then :
pip3 install prompt_toolkit
Collecting prompt_toolkit
Downloading prompt_toolkit-3.0.47-py3-none-any.whl (386 kB)
|████████████████████████████████| 386 kB 1.3 MB/s
Collecting wcwidth
Downloading wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Installing collected packages: wcwidth, prompt-toolkit
Successfully installed prompt-toolkit-3.0.47 wcwidth-0.2.13
(.venv) 1:/xxx/netspionage/core$ cd ..
(.venv) 1:
/xxx/netspionage$ python netspionage.py

            __             _                            
____  ___  / /__________  (_)___  ____  ____ _____ ____ 

/ __ / _ / / / __ / / __ / __ / __ / __ / _
/ / / / __/ /
( ) // / / // / / / / // / // / /
// //_/_// .//_
// //_,/_, /___/
/
/ /____/

Created by Angelina Tsuboi [angelinatsuboi.net] V.0.0.1

https://github.com/ANG13T/netspionage

ENTER 1 - 4 TO SELECT OPTIONS

  1. SCANNING Scan for IPs, nearby APs, ports, hosts, and more

  2. RECONNAISSANCE Gather information about nearby MAC addresses

  3. DETECTION Detect for ARP Spoofing and SYN Flood attacks

  4. EXIT Exit from netspionage to your terminal

FIX: add prompt_toolkit to the requirements.txt

(.venv) 1:~/xxx/netspionage$ cat requirements.txt
scapy
pandas
pick
requests==2.28.0
termcolor
prompt_toolkit

netspionage >>

Verification:

(.venv) 1:/xxx/netspionage$ pip3 install -r requirements.txt
Requirement already satisfied: scapy in ./.venv/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (2.5.0)
Requirement already satisfied: pandas in ./.venv/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (2.0.3)
Requirement already satisfied: pick in ./.venv/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (2.3.2)
Requirement already satisfied: requests==2.28.0 in ./.venv/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (2.28.0)
Requirement already satisfied: termcolor in ./.venv/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (2.4.0)
Collecting prompt_toolkit
Using cached prompt_toolkit-3.0.47-py3-none-any.whl (386 kB)
Requirement already satisfied: numpy>=1.20.3; python_version < "3.10" in ./.venv/lib/python3.8/site-packages (from pandas->-r requirements.txt (line 2)) (1.24.4)
Requirement already satisfied: pytz>=2020.1 in ./.venv/lib/python3.8/site-packages (from pandas->-r requirements.txt (line 2)) (2024.1)
Requirement already satisfied: tzdata>=2022.1 in ./.venv/lib/python3.8/site-packages (from pandas->-r requirements.txt (line 2)) (2024.1)
Requirement already satisfied: python-dateutil>=2.8.2 in ./.venv/lib/python3.8/site-packages (from pandas->-r requirements.txt (line 2)) (2.9.0.post0)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.8/site-packages (from requests==2.28.0->-r requirements.txt (line 4)) (3.7)
Requirement already satisfied: charset-normalizer
=2.0.0 in ./.venv/lib/python3.8/site-packages (from requests==2.28.0->-r requirements.txt (line 4)) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/lib/python3.8/site-packages (from requests==2.28.0->-r requirements.txt (line 4)) (1.26.19)
Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.8/site-packages (from requests==2.28.0->-r requirements.txt (line 4)) (2024.7.4)
Requirement already satisfied: wcwidth in ./.venv/lib/python3.8/site-packages (from prompt_toolkit->-r requirements.txt (line 6)) (0.2.13)
Requirement already satisfied: six>=1.5 in ./.venv/lib/python3.8/site-packages (from python-dateutil>=2.8.2->pandas->-r requirements.txt (line 2)) (1.16.0)
Installing collected packages: prompt-toolkit
Successfully installed prompt-toolkit-3.0.47
(.venv) 1:~/xxx/netspionage$ python netspionage.py

            __             _                            
____  ___  / /__________  (_)___  ____  ____ _____ ____ 

/ __ / _ / / / __ / / __ / __ / __ / __ / _
/ / / / __/ /
( ) // / / // / / / / // / // / /
// //_/_// .//_
// //_,/_, /___/
/
/ /____/

Created by Angelina Tsuboi [angelinatsuboi.net] V.0.0.1

https://github.com/ANG13T/netspionage

ENTER 1 - 4 TO SELECT OPTIONS

  1. SCANNING Scan for IPs, nearby APs, ports, hosts, and more

  2. RECONNAISSANCE Gather information about nearby MAC addresses

  3. DETECTION Detect for ARP Spoofing and SYN Flood attacks

  4. EXIT Exit from netspionage to your terminal

netspionage >> 4

Till next time!

Recommendation:

modify requirements.txt to include prompt_toolkit.

regards,

PH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant