Skip to content

Commit

Permalink
core/deps: move shnake lib from deps/ to src
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Sep 10, 2020
1 parent 5ff4209 commit e205293
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions INSTALL.md
Expand Up @@ -26,10 +26,6 @@ Compatible with python >= 3.5
`import phpserialize`
Needed to communicate between Python and PHP remote execution

* **shnake**
`import shnake`
The base library for phpsploit command-line interface

* **pyparsing**
`import pyparsing`
A dependency of `shnake`. Used to parse command-line input
Expand Down
3 changes: 2 additions & 1 deletion deps/__init__.py
Expand Up @@ -18,7 +18,8 @@
('socks', 'PySocks-1.4.2-74-g10fb5b2'),
('sockshandler', 'PySocks-1.4.2-74-g10fb5b2'),
('pyparsing', 'pyparsing-2.1.1'),
('shnake', 'shnake-0.5')]
# ('shnake', 'shnake-0.5')
]

def dependency_error(module):
sys.exit('Missing PhpSploit dependency: "%s"' % module)
Expand Down
4 changes: 4 additions & 0 deletions src/__init__.py
Expand Up @@ -25,4 +25,8 @@
# use current directory as main python path
sys.path[0] = COREDIR

# add src/core/shnake-0.5/ to python path
shnake_path = os.path.join(COREDIR, "shnake-0.5") + os.sep
sys.path.insert(0, shnake_path)

del deps, sys, os # clean package's content
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.
File renamed without changes.

0 comments on commit e205293

Please sign in to comment.