Skip to content

Commit 8593741

Browse files
committed
Minor bug fix
1 parent 7136c17 commit 8593741

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

doc/README.sgml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5403,25 +5403,23 @@ Example of Google dorking with expression <tt>login ext:php</tt>
54035403
and resulting page set to 3:
54045404

54055405
<tscreen><verb>
5406-
$ python sqlmap.py -g "login ext:php" --gpage=3 -v 1
5406+
$ python sqlmap.py -g "ext:php login" --gpage 3 -v 1
54075407

5408-
[hh:mm:12] [INFO] first request to Google to get the session cookie
5409-
[hh:mm:12] [INFO] using search result page #3
5410-
[hh:mm:12] [INFO] sqlmap got 100 results for your Google dork expression, 5 of them are testable targets
5411-
[hh:mm:12] [INFO] sqlmap got a total of 5 targets
5408+
[hh:mm:14] [INFO] first request to Google to get the session cookie
5409+
[hh:mm:14] [INFO] using Google result page #3
5410+
[hh:mm:14] [INFO] sqlmap got 100 results for your Google dork expression, 89 of them are testable targets
5411+
[hh:mm:15] [INFO] sqlmap got a total of 89 targets
54125412
url 1:
5413-
GET http://myjobstreet-beta.jobstreet.com/home/login.php?site=in
5413+
GET http://www.XXX.com/index.php?pageid=login
54145414
do you want to test this url? [Y/n/q]
5415-
>
5416-
[hh:mm:14] [INFO] testing url http://myjobstreet-beta.jobstreet.com/home/login.php?site=in
5417-
[hh:mm:14] [INFO] using '/home/stamparm/Work/sqlmap/sqlmap/output/None/session' as session file
5418-
[hh:mm:14] [INFO] testing connection to the target url
5419-
[hh:mm:15] [INFO] testing if the url is stable, wait a few seconds
5415+
> y
5416+
[hh:mm:17] [INFO] testing url http://www.XXX.com/index.php?pageid=login
5417+
[hh:mm:17] [INFO] using '/home/inquis/software/sqlmap/subversion/trunk/sqlmap/output/www.XXX.com/session' as session file
5418+
[hh:mm:17] [INFO] testing connection to the target url
5419+
[hh:mm:17] [INFO] testing if the url is stable, wait a few seconds
54205420
[hh:mm:19] [INFO] url is stable
54215421
[hh:mm:19] [INFO] testing if User-Agent parameter 'User-Agent' is dynamic
54225422
[hh:mm:21] [WARNING] User-Agent parameter 'User-Agent' is not dynamic
5423-
[hh:mm:21] [INFO] testing if Cookie parameter 'REFERP' is dynamic
5424-
[hh:mm:22] [WARNING] Cookie parameter 'REFERP' is not dynamic
54255423
[hh:mm:22] [INFO] testing if Cookie parameter 'PHPSESSID' is dynamic
54265424
[hh:mm:24] [INFO] confirming that Cookie parameter 'PHPSESSID' is dynamic
54275425
[hh:mm:27] [INFO] Cookie parameter 'PHPSESSID' is dynamic

lib/controller/controller.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from lib.controller.checks import checkRegexp
3131
from lib.controller.checks import checkConnection
3232
from lib.core.common import paramToDict
33+
from lib.core.common import parseTargetUrl
3334
from lib.core.common import readInput
3435
from lib.core.data import conf
3536
from lib.core.data import kb
@@ -133,6 +134,7 @@ def start():
133134
logMsg = "testing url %s" % targetUrl
134135
logger.info(logMsg)
135136

137+
parseTargetUrl()
136138
createTargetDirs()
137139
initTargetEnv()
138140

lib/core/target.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
from lib.core.common import dataToSessionFile
2929
from lib.core.common import paramToDict
30-
from lib.core.common import parseTargetUrl
3130
from lib.core.data import conf
3231
from lib.core.data import kb
3332
from lib.core.data import logger
@@ -232,6 +231,5 @@ def initTargetEnv():
232231
kb.unionCount = None
233232
kb.unionPosition = None
234233

235-
parseTargetUrl()
236234
__setRequestParams()
237235
__setOutputResume()

0 commit comments

Comments
 (0)