mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Fix for a same bug mentioned in last commit
This commit is contained in:
parent
43df4efd11
commit
dfa727cbc5
|
@ -262,9 +262,9 @@ class Web:
|
||||||
uplPage, _, _ = Request.getPage(url=self.webStagerUrl, direct=True, raise404=False)
|
uplPage, _, _ = Request.getPage(url=self.webStagerUrl, direct=True, raise404=False)
|
||||||
uplPage = uplPage or ""
|
uplPage = uplPage or ""
|
||||||
|
|
||||||
for x in list(re.finditer('/', directory)):
|
for match in re.finditer('/', directory):
|
||||||
self.webBaseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, directory[x.start():])
|
self.webBaseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, directory[match.start():])
|
||||||
self.webStagerUrl = os.path.join(self.webBaseUrl, stagerName)
|
self.webStagerUrl = urlparse.urljoin(self.webBaseUrl, stagerName)
|
||||||
self.webStagerFilePath = ntToPosixSlashes(os.path.join(directory, stagerName))
|
self.webStagerFilePath = ntToPosixSlashes(os.path.join(directory, stagerName))
|
||||||
|
|
||||||
debugMsg = "trying to see if the file is accessible from %s" % self.webStagerUrl
|
debugMsg = "trying to see if the file is accessible from %s" % self.webStagerUrl
|
||||||
|
@ -279,7 +279,7 @@ class Web:
|
||||||
|
|
||||||
if not uploaded:
|
if not uploaded:
|
||||||
self.webBaseUrl = "%s://%s:%d/" % (conf.scheme, conf.hostname, conf.port)
|
self.webBaseUrl = "%s://%s:%d/" % (conf.scheme, conf.hostname, conf.port)
|
||||||
self.webStagerUrl = os.path.join(self.webBaseUrl, stagerName)
|
self.webStagerUrl = urlparse.urljoin(self.webBaseUrl, stagerName)
|
||||||
self.webStagerFilePath = ntToPosixSlashes(os.path.join(directory, stagerName))
|
self.webStagerFilePath = ntToPosixSlashes(os.path.join(directory, stagerName))
|
||||||
|
|
||||||
debugMsg = "trying to see if the file is accessible from %s" % self.webStagerUrl
|
debugMsg = "trying to see if the file is accessible from %s" % self.webStagerUrl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user