Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python27Packages.sqlmap: 1.3.12 -> 1.4 #78836

Merged
merged 3 commits into from Feb 6, 2020

Conversation

@r-ryantm
Copy link
Contributor

@r-ryantm r-ryantm commented Jan 30, 2020

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python2.7-sqlmap/versions.

meta.description for python27Packages.sqlmap is: '"Automatic SQL injection and database takeover tool"'.

meta.homepage for python27Packages.sqlmap is: '"http://sqlmap.org"

Checks done (click to expand)
Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

3 package rebuild(s)

3 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python27Packages.sqlmap
python37Packages.sqlmap
python38Packages.sqlmap

Instructions to test this update (click to expand)

Either download from Cachix:

nix-store -r /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.

Or, build yourself:

nix-build -A python27Packages.sqlmap https://github.com/r-ryantm/nixpkgs/archive/0e284bd3d87cb2bce6cbd527a438e5acb3899bce.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4
ls -la /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4/bin

cc @bennofs for testing.

Copy link
Contributor

@bennofs bennofs left a comment

Fails with this error when run:

Traceback (most recent call last):
  File "/nix/store/pngmk1pn5fp52bynm73c6ysn4d9ms0am-python3.7-sqlmap-1.4/lib/python3.7/site-packages/sqlmap/thirdparty/magic/magic.py", line 115, in <module>
    libmagic = ctypes.CDLL(dll)
  File "/nix/store/aw85aijllnc5spk2fqbivygrhx6x7411-python3-3.7.6/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libmagic.so.1: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/pngmk1pn5fp52bynm73c6ysn4d9ms0am-python3.7-sqlmap-1.4/bin/.sqlmap-wrapped", line 6, in <module>
    from sqlmap.sqlmap import main
  File "/nix/store/pngmk1pn5fp52bynm73c6ysn4d9ms0am-python3.7-sqlmap-1.4/lib/python3.7/site-packages/sqlmap/sqlmap.py", line 44, in <module>
    from lib.core.common import banner
  File "/nix/store/pngmk1pn5fp52bynm73c6ysn4d9ms0am-python3.7-sqlmap-1.4/lib/python3.7/site-packages/sqlmap/lib/core/common.py", line 189, in <module>
    from thirdparty.magic import magic
  File "/nix/store/pngmk1pn5fp52bynm73c6ysn4d9ms0am-python3.7-sqlmap-1.4/lib/python3.7/site-packages/sqlmap/thirdparty/magic/magic.py", line 116, in <module>
    except WindowsError:
NameError: name 'WindowsError' is not defined
@jonringer
Copy link
Contributor

@jonringer jonringer commented Feb 2, 2020

if anyone wants to fix this, libmagic.so.1 is found in the file package. The source needs to be patch to look for ${file}/lib/libmagic.so.1

bennofs added 2 commits Feb 6, 2020
@bennofs bennofs merged commit 67312c6 into NixOS:master Feb 6, 2020
@r-ryantm r-ryantm deleted the r-ryantm:auto-update/python2.7-sqlmap branch Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.