From a10d8d58253b63cb8dbc28327eb645975a3a7de7 Mon Sep 17 00:00:00 2001 From: ekultek Date: Mon, 9 Oct 2017 10:56:25 -0500 Subject: [PATCH] minor edit to search.py removed sqlmap_api_directions.txt --- lib/settings.py | 2 +- sqlmap_api_directions.txt | 25 ------------------------- var/google_search/search.py | 3 ++- 3 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 sqlmap_api_directions.txt diff --git a/lib/settings.py b/lib/settings.py index dbd3c8c..02835ec 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.31.5b3a" +VERSION = "1.0.32" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting diff --git a/sqlmap_api_directions.txt b/sqlmap_api_directions.txt deleted file mode 100644 index 7a260ca..0000000 --- a/sqlmap_api_directions.txt +++ /dev/null @@ -1,25 +0,0 @@ -Hi guys, firstly I would like to thank you for using Zeus, it's pretty cool right?! - -Now that we got out of the way, I recently came across a video of someone trying to -show people how to use Zeus and receiving an error while trying to use sqlmap's API -server : https://www.youtube.com/watch?v=nADNliYrnuI - -If you watch that video you will see that they never started the sqlmap API, nor passed -any of the correct flags to even attempt to auto start it. They simply thought that -Zeus would automatically find sqlmapapi.py and just start it for them. Well, yes that -is possible, but it has not been implemented yet. In order to use sqlmap with Zeus you -will need to do one of two things: - -A) (easiest way) CD into sqlmap and run `python sqlmapapi.py -s` -B) Pass the correct flags in order for Zeus to attempt to find sqlmap on your system - and attempt to auto start the API server. - -Also please keep in mind that for now, you will need to restart the API server every -iteration. I've been trying to figure out a way to extract the hash ID values into a -unique list, but it's a lot harder then you think it is. So remember to start the API -and then press enter at the prompt. If you read the output (which you probably don't) -then you will see that it tells you to start the API before continuing. I have caught -the error and it will output that the API is not started if it hits that error. Once -again, thank you for using Zeus, hope you enjoy it as much as I enjoy creating it. - -- Eku \ No newline at end of file diff --git a/var/google_search/search.py b/var/google_search/search.py index e7f0b80..4775358 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -72,7 +72,8 @@ def extract_webcache_url(webcache_url, splitter=("%2Bext", ":")): webcache_regex = re.compile(r"(?<=q=).*?(?=[&\"])") data = "".join(webcache_regex.findall(webcache_url)) to_extract = data.split(splitter[0])[0] - return "http:" + to_extract.split(splitter[1])[3] + found = "http:" + to_extract.split(splitter[1])[3] + return unquote(found) def get_urls(query, url, verbose=False, warning=True, user_agent=None, proxy=None, **kwargs):