Files
macports-ports/security/sqlmap/files/patch-cmd-usage-string.diff
Vadim-Valdis Yudaev c065f7c1da sqlmap: Update to 1.5.4
Changes:
* Update to 1.5.4
* Add support for Python 3.9
* Patch for removes python in the usage string from the help
2021-04-15 23:10:43 +01:00

14 lines
647 B
Diff

This fix removes python in the usage string from the help.
--- sqlmap/lib/parse/cmdline.py.Orig 2021-04-15 23:16:45.000000000 +0300
+++ sqlmap/lib/parse/cmdline.py 2021-04-15 23:19:20.000000000 +0300
@@ -107,7 +107,7 @@
# Reference: https://stackoverflow.com/a/4012683 (Note: previously used "...sys.getfilesystemencoding() or UNICODE_ENCODING")
_ = getUnicode(os.path.basename(argv[0]), encoding=sys.stdin.encoding)
- usage = "%s%s [options]" % ("%s " % os.path.basename(sys.executable) if not IS_WIN else "", "\"%s\"" % _ if " " in _ else _)
+ usage = "sqlmap [options]"
parser = ArgumentParser(usage=usage)
try: