From 4af65f6c41606fc719ae5cad942f628cffb54e0b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 2 Aug 2016 00:25:01 +0200 Subject: [PATCH] Preparing for #1250 --- extra/shutils/pypi.sh | 56 +++++++++++++++++++++++++++++++++++++++++++ lib/core/settings.py | 2 +- txt/checksum.md5 | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 extra/shutils/pypi.sh diff --git a/extra/shutils/pypi.sh b/extra/shutils/pypi.sh new file mode 100644 index 00000000000..7ce2e4bf6c3 --- /dev/null +++ b/extra/shutils/pypi.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +VERSION=1.0.8 +TMP_DIR=/tmp/pypi +mkdir $TMP_DIR +cd $TMP_DIR +cat > $TMP_DIR/setup.py << EOF +#!/usr/bin/env python + +""" +Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) +See the file 'doc/COPYING' for copying permission +""" + +from setuptools import setup, find_packages + +setup( + name='sqlmap', + version='$VERSION', + description="Automatic SQL injection and database takeover tool", + author='Bernardo Damele Assumpcao Guimaraes, Miroslav Stampar', + author_email='bernardo@sqlmap.org, miroslav@sqlmap.org', + url='https://sqlmap.org', + download_url='https://github.com/sqlmapproject/sqlmap/archive/$VERSION.zip', + license='GPLv2', + packages=find_packages(), + include_package_data=True, + zip_safe=False, + entry_points={ + 'console_scripts': [ + 'sqlmap = sqlmap.sqlmap:main', + ], + }, +) +EOF +wget "https://github.com/sqlmapproject/sqlmap/archive/$VERSION.zip" -O sqlmap.zip +unzip sqlmap.zip +rm sqlmap.zip +mv "sqlmap-$VERSION" sqlmap +cat > sqlmap/__init__.py << EOF +#!/usr/bin/env python + +""" +Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) +See the file 'doc/COPYING' for copying permission +""" + +import os +import sys + +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +EOF +for file in $(find sqlmap -type f | grep -v -E "\.(git|yml)"); do echo include $file >> MANIFEST.in; done +python setup.py sdist +python setup.py sdist upload +rm -rf $TMP_DIR \ No newline at end of file diff --git a/lib/core/settings.py b/lib/core/settings.py index adaae913c4e..eb41d17c727 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.8.1" +VERSION = "1.0.8.2" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 0b9b4da14a6..db25e3df537 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -7818f4d503649d92e5239be5f6790501 lib/core/settings.py +1a0fab09e6840a52bdfec892fbd9ee53 lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py