[sqlmap-users] error when load a large session file
Brought to you by:
inquisb
From: CoeTs7 <tm...@ho...> - 2011-12-10 13:13:37
|
hi, veryone:first thanks for the improvement the dev team have done. Again i met another problem today:i want to dump a large table into a csv format file using --dump, but the process is interrupted. so i restart the sqlmap to go on dumping process. but sqlmap exited with this error:sqlmap version: 1.0-dev (r4577)Python version: 2.6.5Operating system: posixCommand line: /root/sqlmap-dev/sqlmap.py -u ************************************ --data __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTExNTc0NTExMDFkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQhidG5Mb2dpbp3vdb50NBPJYzWlZFZWJJY9toPi&__EVENTVALIDATION=%2FwEWBAKpi5vuDwKl1bKzCQK1qbSRCwKC3IeGDFW12pkpDGT2BoBndGNsu1HoD82G&txtUserName=testf&txtPassword=test&btnLogin.x=18&btnLogin.y=9 -p txtUserName --technique=E -D ***** -T **************** --dump --thread 10Technique: NoneBack-end DBMS: None (identified)Traceback (most recent call last): File "/root/sqlmap-dev/_sqlmap.py", line 86, in main start() File "/root/sqlmap-dev/lib/controller/controller.py", line 335, in start setupTargetEnv() File "/root/sqlmap-dev/lib/core/target.py", line 397, in setupTargetEnv __setOutputResume() File "/root/sqlmap-dev/lib/core/target.py", line 220, in __setOutputResume for line in readSessionFP.readlines(): # xreadlines doesn't return unicode strings when codec.open() is used File "/usr/lib/python2.6/codecs.py", line 674, in readlines return self.reader.readlines(sizehint) File "/usr/lib/python2.6/codecs.py", line 583, in readlines data = self.read() File "/usr/lib/python2.6/codecs.py", line 472, in read newchars, decodedbytes = self.decode(data, self.errors)MemoryErrorthe session file is about 800MB. i think the problem is that sqlmap is trying to load the whole session file into memory but there is no enough memory left. is there any solution to solve this big file problem ? thx a lot. Regards, tm3y |