Skip to content

Commit

Permalink
Merge pull request #313 from captain-woof/typos_and_error_fixes
Browse files Browse the repository at this point in the history
Typos and error fixes
  • Loading branch information
Jose Pino authored Jun 20, 2021
2 parents e362980 + 626bca6 commit 6baae24
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,32 @@ How to use it
```
git clone https://github.com/jofpin/trape.git
cd trape
python2 trape.py -h
python3 trape.py -h
```
If it does not work, try to install all the libraries that are located in the file **requirements.txt**
```
python2 -m pip install -r requirements.txt
pip3 install -r requirements.txt
```

Example of execution
```
Example: python2 trape.py --url http://example.com --port 8080
Example: python3 trape.py --url http://example.com --port 8080
```

If you face some problems installing the tool, it is probably due to Python versions conflicts, you should run a Python 2.7 environment :

```
pip install virtualenv
virtualenv -p /usr/bin/python2.7 Vpy27
source Vpy27/bin/activate
pip2 install -r requirements.txt
python2 trape.py -h
pip3 install virtualenv
virtualenv -p /usr/bin/python3 trape_env
source trape_env/bin/activate
pip3 install -r requirements.txt
python3 trape.py -h
```

**HELP AND OPTIONS**
```
user:~$ python2 trape.py --help
usage: python trape.py -u <> -p <> [-h] [-v] [-u URL] [-p PORT]
user:~$ python3 trape.py --help
usage: python3 trape.py -u <> -p <> [-h] [-v] [-u URL] [-p PORT]
[-ak ACCESSKEY] [-l LOCAL]
[--update] [-n] [-ic INJC]
Expand Down
2 changes: 1 addition & 1 deletion core/sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from flask_socketio import SocketIO, emit, join_room, rooms, disconnect
import core.stats
import core.user
from user_objects import attacks_hook_message
from core.user_objects import attacks_hook_message
from core.utils import utils
from core.db import Database
import sys
Expand Down
2 changes: 1 addition & 1 deletion core/trape.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, stat = 0):
if self.googl == '':
self.googl = 'AIzaSyDHMDTOGo9L1OBl5vRxOVM6vpXOXVp5jCc'

parser = argparse.ArgumentParser("python trape.py -u <<Url>> -p <<Port>>", version=self.version)
parser = argparse.ArgumentParser("python3 trape.py -u <<Url>> -p <<Port>>")
parser.add_argument('-u', '--url', dest='url', help='Put the web page url to clone')
parser.add_argument('-p', '--port', dest='port', help='Insert your port')
parser.add_argument('-ak', '--accesskey', dest='accesskey', help='Insert your custom key access')
Expand Down
4 changes: 2 additions & 2 deletions trape.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#**
#
###############################################
#
import os #
from core.utils import utils #
from core.trape import Trape #
from core.db import Database #
Expand All @@ -30,7 +30,7 @@
import os #
except: ############################################
utils.Go("\t\nPlease install requirements.txt libraries, you can do it executing:") #
utils.Go("\t\npip install -r requirements.txt") #####################################
utils.Go("\t\npip3 install -r requirements.txt") ####################################
######################################################

# We generalize the main class of <trape>
Expand Down

0 comments on commit 6baae24

Please sign in to comment.