mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor update
This commit is contained in:
parent
c39e5a85ba
commit
f495cfa139
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# # Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
||||||
# See the file 'doc/COPYING' for copying permission
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
|
||||||
# Removes trailing spaces from blank lines inside project files
|
# Removes trailing spaces from blank lines inside project files
|
||||||
|
|
|
@ -1,34 +1,27 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
||||||
"""
|
# See the file 'doc/COPYING' for copying permission
|
||||||
Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
|
||||||
See the file 'doc/COPYING' for copying permission
|
|
||||||
|
|
||||||
# Removes duplicate entries in wordlist like files
|
# Removes duplicate entries in wordlist like files
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if len(sys.argv) > 0:
|
if len(sys.argv) > 0:
|
||||||
|
items = list()
|
||||||
|
|
||||||
items = list()
|
with open(sys.argv[1], 'r') as f:
|
||||||
f = open(sys.argv[1], 'r')
|
for item in f.readlines():
|
||||||
|
item = item.strip()
|
||||||
|
try:
|
||||||
|
str.encode(item)
|
||||||
|
if item in items:
|
||||||
|
if item:
|
||||||
|
print item
|
||||||
|
else:
|
||||||
|
items.append(item)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
for item in f.readlines():
|
with open(sys.argv[1], 'w+') as f:
|
||||||
item = item.strip()
|
f.writelines("\n".join(items))
|
||||||
try:
|
|
||||||
str.encode(item)
|
|
||||||
if item in items:
|
|
||||||
if item:
|
|
||||||
print item
|
|
||||||
else:
|
|
||||||
items.append(item)
|
|
||||||
|
|
||||||
if not item:
|
|
||||||
items.append('')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
f = open(sys.argv[1], 'w+')
|
|
||||||
f.writelines("\n".join(items))
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# # Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
|
||||||
# See the file 'doc/COPYING' for copying permission
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
|
||||||
# Adds SVN property 'Id' to project files
|
# Adds SVN property 'Id' to project files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user