forked from sqlmapproject/sqlmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlmap 0.8-rc3: Merge from Miroslav Stampar's branch fixing a bug whe…
…n verbosity > 2, another major bug with urlencoding/urldecoding of POST data and Cookies, adding --drop-set-cookie option, implementing support to automatically decode gzip and deflate HTTP responses, support for Google dork page result (--gpage) and a minor code cleanup.
- Loading branch information
Showing
62 changed files
with
563 additions
and
1,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,33 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
dbgtool.py - Portable executable to ASCII debug script converter | ||
Copyright (C) 2009 Bernardo Damele A. G. | ||
web: http://bernardodamele.blogspot.com/ | ||
email: [email protected] | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
dbgtool.py - Portable executable to ASCII debug script converter | ||
Copyright (C) 2009 Bernardo Damele A. G. | ||
web: http://bernardodamele.blogspot.com/ | ||
email: [email protected] | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
""" | ||
|
||
|
||
|
||
import os | ||
import sys | ||
import struct | ||
|
||
from optparse import OptionError | ||
from optparse import OptionParser | ||
|
||
|
||
def convert(inputFile): | ||
fileStat = os.stat(inputFile) | ||
fileSize = fileStat.st_size | ||
|
@@ -73,8 +70,7 @@ def convert(inputFile): | |
script += "w\r\nq\r\n" | ||
|
||
return script | ||
|
||
|
||
|
||
def main(inputFile, outputFile): | ||
if not os.path.isfile(inputFile): | ||
print 'ERROR: the provided input file \'%s\' is not a regular file' % inputFile | ||
|
@@ -89,8 +85,7 @@ def main(inputFile, outputFile): | |
sys.stdout.close() | ||
else: | ||
print script | ||
|
||
|
||
|
||
if __name__ == '__main__': | ||
usage = '%s -i <input file> [-o <output file>]' % sys.argv[0] | ||
parser = OptionParser(usage=usage, version='0.1') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.