Skip to content

Commit 8c7263b

Browse files
authored
Merge pull request #109 from DedSecInside/bug_fixes
Bug_fixes
2 parents 7151656 + a9a99cd commit 8c7263b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

modules/pagereader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ def connection_msg(site):
99

1010

1111
def read_first_page(site):
12-
headers = {'User-Agent': 'TorBot - Onion crawler | www.github.com/DedSecInside/TorBot'}
12+
headers = {'User-Agent': 'XXXX-XXXXX-XXXX'}
1313
attempts_left = 3
1414
err = " "
1515
while attempts_left:
1616
if attempts_left == 3:
17-
print(next(connection_msg(site)))
1817
response = get_url_status(site, headers)
1918
if response != 0:
2019
page = BeautifulSoup(response.text, 'html.parser')

modules/updater.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def updateTor():
2323
stdout=subprocess.PIPE,
2424
stderr=subprocess.STDOUT)
2525
update_out = update.stdout.read()
26-
if update_out[90:109].decode("utf-8") == 'Already up-to-date.':
26+
if update_out[90:109].decode("utf-8") == 'Already up to date.':
2727
print("TorBot is already up-to-date.")
2828
else:
2929
print("TorBot has succesfully updated to latest stable version.")
@@ -42,7 +42,7 @@ def updateTor():
4242
stdout=subprocess.PIPE,
4343
stderr=subprocess.STDOUT)
4444
update_out = update.stdout.read()
45-
if update_out[90:109].decode("utf-8") == 'Already up-to-date.':
45+
if update_out[90:109].decode("utf-8") == 'Already up to date.':
4646
print("TorBot is already up-to-date.")
4747
else:
4848
print("TorBot has succesfully updated to latest stable version.")

torBot.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ def header():
6565
/ __/ / / / /_/ / __ \/ __ \/ /
6666
/ /_/ /_/ / _, _/ /_/ / /_/ / /
6767
\__/\____/_/ |_/_____/\____/_/ V{VERSION}
68-
{FAIL} + {On_Black}
68+
{FAIL} {On_Black}
6969
#######################################################
70-
# TorBot - A python Tor Crawler #
70+
# TorBot - An OSINT Tool for Deep Web #
7171
# GitHub : https://github.com/DedsecInside/TorBot #
7272
# Help : use -h for help text #
7373
#######################################################
74-
{FAIL} + "LICENSE: GNU Public License" + {END}""".format(
74+
{FAIL} LICENSE: GNU Public License {END}""".format(
7575
D3DSEC=D3DSEC, INS1DE=INS1DE, FAIL=b_color.FAIL,
7676
BOLD=b_color.BOLD, VERSION=__VERSION, END=b_color.ENDC,
7777
On_Black=b_color.On_Black, WHITE=b_color.WHITE
@@ -91,9 +91,9 @@ def get_args():
9191
action="store_true")
9292
parser.add_argument("-u", "--url",
9393
help="Specifiy a website link to crawl")
94-
parser.add_argument("--ip", help="Change ip address for tor")
94+
parser.add_argument("--ip", help="Change default ip of tor")
9595
parser.add_argument("-p", "--port",
96-
help="Change port number for tor")
96+
help="Change default port of tor")
9797
parser.add_argument("-s", "--save",
9898
action="store_true",
9999
help="Save results in a file")

0 commit comments

Comments
 (0)