Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5121a4d

Browse files
committed
Send IE7.0 as default User-Agent
1 parent 406d5df commit 5121a4d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@
6060
from lib.core.settings import MSSQL_ALIASES
6161
from lib.core.settings import MYSQL_ALIASES
6262
from lib.core.settings import PLATFORM
63-
from lib.core.settings import SITE
6463
from lib.core.settings import SUPPORTED_DBMS
6564
from lib.core.settings import SUPPORTED_OS
66-
from lib.core.settings import VERSION_STRING
6765
from lib.core.update import update
6866
from lib.parse.configfile import configFileParser
6967
from lib.parse.queriesfile import queriesParser
@@ -602,7 +600,9 @@ def __defaultHTTPUserAgent():
602600
@rtype: C{str}
603601
"""
604602

605-
return "%s (%s)" % (VERSION_STRING, SITE)
603+
# Internet Explorer 7.0 running on Windows 2003 Service Pack 2 english
604+
# updated at March 2009
605+
return "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
606606

607607

608608
def __setHTTPUserAgent():

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
# sqlmap version and site
33-
VERSION = "0.7rc1"
33+
VERSION = "0.7rc2"
3434
VERSION_STRING = "sqlmap/%s" % VERSION
3535
SITE = "http://sqlmap.sourceforge.net"
3636

0 commit comments

Comments
 (0)