Skip to content

Commit 2b27923

Browse files
committed
1 parent b51b80b commit 2b27923

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/core/profiling.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def profile(profileOutputFile=None, dotOutputFile=None, imageOutputFile=None):
7575
# Create graph image (png) by using pydot (python-pydot)
7676
# http://code.google.com/p/pydot/
7777
pydotGraph = pydot.graph_from_dot_file(dotOutputFile)
78+
79+
# Reference: http://stackoverflow.com/questions/38176472/graph-write-pdfiris-pdf-attributeerror-list-object-has-no-attribute-writ
80+
if isinstance(pydotGraph, list):
81+
pydotGraph = pydotGraph[0]
82+
7883
pydotGraph.write_png(imageOutputFile)
7984

8085
infoMsg = "displaying interactive graph with xdot library"

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.0.10.20"
23+
VERSION = "1.0.10.21"
2424
REVISION = getRevisionNumber()
2525
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2626
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/core/__init__.py
4040
91c514013daa796e2cdd940389354eac lib/core/log.py
4141
5b079749c50240602ea92637e268ed31 lib/core/optiondict.py
4242
7e810ce6416465b3ccf0557f941a7653 lib/core/option.py
43-
1e8948dddbd12def5c2af52530738059 lib/core/profiling.py
43+
7af487340c138f7b5dbd443161cbb428 lib/core/profiling.py
4444
e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
2198a75694fe7bff1fe9dd0391f27358 lib/core/settings.py
48+
5a6d84960ff31279407075c65fc09d7f lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py

0 commit comments

Comments
 (0)