Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
a4e0390f
Unverified
Commit
a4e0390f
authored
May 28, 2018
by
Marcin Bury
Committed by
GitHub
May 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if the app is run in python3 (#438)
parent
9944047e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
shell.py
routersploit/core/exploit/shell.py
+1
-1
rsf.py
rsf.py
+5
-2
No files found.
routersploit/core/exploit/shell.py
View file @
a4e0390f
...
...
@@ -131,7 +131,7 @@ def shell(exploit, architecture="", method="", payloads=None, **params):
elf_binary
=
payload
.
generate_elf
(
data
)
communication
=
Communication
(
exploit
,
elf_binary
,
options
,
**
params
)
if
communication
.
wget
()
is
False
:
print_error
(
"Exploit failed to transfer payload"
)
print_error
(
"Exploit failed to transfer payload"
)
continue
elif
method
==
"echo"
:
...
...
rsf.py
View file @
a4e0390f
#!/usr/bin/env python
#!/usr/bin/env python
3
from
__future__
import
print_function
import
sys
if
sys
.
version_info
.
major
<
3
:
print
(
"RouterSploit supports only Python3. Rerun application in Python3 environment."
)
exit
(
0
)
import
logging.handlers
from
routersploit.interpreter
import
RoutersploitInterpreter
log_handler
=
logging
.
handlers
.
RotatingFileHandler
(
filename
=
"routersploit.log"
,
maxBytes
=
500000
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment