File: add-sys-path-append

package info (click to toggle)
websploit 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,248 kB
  • ctags: 126
  • sloc: python: 231,477; ruby: 412; php: 20; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Added a sys.path.append in the main script to make it look in /usr/share/websploit/ for the rest of the stuff it needs.
Author: Devon Kearns <dookie@kali.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/websploit
+++ b/websploit
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 # 
 #            --------------------------------------------------
 #                            WebSploit Framework          
@@ -32,6 +32,8 @@
 #    Blog : www.websploit.ir
 #
 import os
+import sys
+sys.path.append("/usr/share/websploit/")
 import readline, rlcompleter
 from time import sleep
 from core import wcolors