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

phrasendrescher: 1.0 -> 1.2.2b #36661

Closed
wants to merge 2 commits into from

Conversation

ryantm
Copy link
Member

@ryantm ryantm commented Mar 9, 2018

Semi-automatic update. These checks were done:

  • built on NixOS
  • ran /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd -h got 0 exit code
  • ran /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd -h and found version 1.2.2b
  • found 1.2.2b with grep in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
  • found 1.2.2b in filename of file in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b

cc @bjornfor

Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd -h` got 0 exit code
- ran `/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd -h` and found version 1.2.2b
- found 1.2.2b with grep in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
- found 1.2.2b in filename of file in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

I assume b stands for beta.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

make[1]: Leaving directory '/tmp/nix-build-phrasendrescher-1.2.2b.drv-0/phrasendrescher-1.2.2b'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
shrinking /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd
gzipping man pages under /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin 
patching script interpreter paths in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
checking for references to /tmp/nix-build-phrasendrescher-1.2.2b.drv-0 in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b...
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

make[1]: Leaving directory '/build/phrasendrescher-1.2.2b'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b
shrinking /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b/bin/pd
gzipping man pages under /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b/bin
patching script interpreter paths in /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b
checking for references to /build in /nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b...
/nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b

@ryantm
Copy link
Member Author

ryantm commented Mar 9, 2018

@Mic92 I don't know for sure, but maybe not because there is also a c version http://leidecker.info/projects/phrasendrescher/index.shtml
https://repology.org/metapackage/phrasendrescher/versions

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

Ok. then it is openssl versioning style.

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build phrasendrescher

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

make[1]: Leaving directory '/tmp/nix-build-phrasendrescher-1.2.2b.drv-0/phrasendrescher-1.2.2b'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
shrinking /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd
gzipping man pages under /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin 
patching script interpreter paths in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b
checking for references to /tmp/nix-build-phrasendrescher-1.2.2b.drv-0 in /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b...
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/0li032ppwbar4sk8q2cbzlc526g9yngj-phrasendrescher-1.2.2b

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

test -z "/nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b/share/man/man1" || /nix/store/6b3jzg40vibmrjg85i46vvidyy915428-coreutils-8.29/bin/mkdir -p "/nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b/share/man/man1"
 /nix/store/6b3jzg40vibmrjg85i46vvidyy915428-coreutils-8.29/bin/install -c -m 644 'man/pd.1' '/nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b/share/man/man1/pd.1'
make[2]: Leaving directory '/private/tmp/nix-build-phrasendrescher-1.2.2b.drv-0/phrasendrescher-1.2.2b'
make[1]: Leaving directory '/private/tmp/nix-build-phrasendrescher-1.2.2b.drv-0/phrasendrescher-1.2.2b'
post-installation fixup
gzipping man pages under /nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/4sdh09gmvl15cy0zb6i7mbvxh5syz206-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b/bin
patching script interpreter paths in /nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b
/nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

That looks fishy:

$ /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd
phrasen|drescher 1.2.2b - the passphrase cracker
Copyright (C) 2008 Nico Leidecker; http://www.leidecker.info
Usage: /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd plugin [options] credentials
Please choose a plugin first or use -h for more help
Available plugins:
cannot open plugin directory /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/lib/phrasendrescher: No such file or directory
Set the plugin directory in the environment variable PD_PLUGINS if required.
$ find /nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share/man
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share/man/man1
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/share/man/man1/pd.1.gz
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin
/nix/store/sifsd5n9sni7d35b32w3n8xm44yg56dd-phrasendrescher-1.2.2b/bin/pd

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

/nix/store/wg4nc3av6y7hj4l500y90n7z28dsgk3z-phrasendrescher-1.2.2b

@samueldr
Copy link
Member

samueldr commented Aug 8, 2018

@ryantm, @Mic92

Right, it looks fishy, took a look at the build, there was a big warning:

#########################################################
#  not building plugins                                 #
#  (use --with-plugins if you want to build plugins)    #
#########################################################
diff --git a/pkgs/tools/security/phrasendrescher/default.nix b/pkgs/tools/security/phrasendrescher/default.nix
index 9fbeb3541ca..189190ab0bf 100644
--- a/pkgs/tools/security/phrasendrescher/default.nix
+++ b/pkgs/tools/security/phrasendrescher/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, openssl }:
+{ stdenv, fetchurl, openssl, libssh2, gpgme }:

 stdenv.mkDerivation rec {
   name = "phrasendrescher-${version}";
@@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
     sha256 = "0bkiy9dlc1rqicl7g5sbfhgqlyqms4s66lcawwhhbl9d60y72ghs";
   };

-  buildInputs = [ openssl ];
+  buildInputs = [ openssl libssh2 gpgme ];
+
+  configureFlags = "--with-plugins";

   meta = with stdenv.lib; {
     description = "Cracking tool that finds passphrases of SSH keys";

It seems to run better after doing that.

~/tmp/nixpkgs/nixpkgs-36661 $ result/bin/pd
phrasen|drescher 1.2.2b - the passphrase cracker
Copyright (C) 2008 Nico Leidecker; http://www.leidecker.info

Usage: result/bin/pd plugin [options] credentials
Please choose a plugin first or use -h for more help
Available plugins:
  http-raw  ssh  enc-file  pkey  mssql

Set the plugin directory in the environment variable PD_PLUGINS if required.

@Mic92
Copy link
Member

Mic92 commented Aug 8, 2018

@samueldr you can update this pull request then.

Now needs `--with-plugins` to build with plugins.

The plugins need two new dependencies.
@samueldr
Copy link
Member

samueldr commented Aug 9, 2018

@GrahamcOfBorg build phrasendrescher

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: phrasendrescher

Partial log (click to expand)

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking for libssh2_userauth_list in -lssh2... yes
checking for SSL_library_init in -lcrypto... no
configure: error: "Error! You need to have libcrypto installed"
builder for '/nix/store/cgdqk4imrfwaimmhbzv1zcsblfap2nja-phrasendrescher-1.2.2b.drv' failed with exit code 1
error: build of '/nix/store/cgdqk4imrfwaimmhbzv1zcsblfap2nja-phrasendrescher-1.2.2b.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: phrasendrescher

Partial log (click to expand)

shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/mssql.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/http-raw.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/ssh.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/pkey.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/enc-file.pd
gzipping man pages under /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib  /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/bin
patching script interpreter paths in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b
checking for references to /build in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b...

@samueldr
Copy link
Member

samueldr commented Aug 9, 2018

And now with darwin issues. Will look into it later.

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: phrasendrescher

Partial log (click to expand)

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking for libssh2_userauth_list in -lssh2... yes
checking for SSL_library_init in -lcrypto... no
configure: error: "Error! You need to have libcrypto installed"
builder for '/nix/store/cgdqk4imrfwaimmhbzv1zcsblfap2nja-phrasendrescher-1.2.2b.drv' failed with exit code 1
error: build of '/nix/store/cgdqk4imrfwaimmhbzv1zcsblfap2nja-phrasendrescher-1.2.2b.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: phrasendrescher

Partial log (click to expand)

shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/pkey.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/enc-file.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/mssql.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/ssh.pd
shrinking /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib/phrasendrescher/http-raw.pd
gzipping man pages under /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/lib  /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b/bin
patching script interpreter paths in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b
checking for references to /build in /nix/store/ilmsv9hcdhli00r7ca9k3411f58fbm45-phrasendrescher-1.2.2b...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: phrasendrescher

Partial log (click to expand)

shrinking /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/lib/phrasendrescher/enc-file.pd
shrinking /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/lib/phrasendrescher/pkey.pd
shrinking /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/lib/phrasendrescher/ssh.pd
shrinking /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/lib/phrasendrescher/mssql.pd
gzipping man pages under /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/share/man/
strip is /nix/store/zrs21zqcchgyabjf4xfimncdq16njizc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/lib  /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b/bin
patching script interpreter paths in /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b
checking for references to /build in /nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b...
/nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: phrasendrescher

Partial log (click to expand)

these derivations will be built:
  /nix/store/h95mpq1kdq8f6fhijic24fawvcxly5d8-gnupg-2.2.8.drv
  /nix/store/zzfydpa7gjzxp063ksd2yilx8w71ppvz-gpgme-1.11.1.drv
  /nix/store/6l9lx2zqwp4kicpgyi4l41bmrxikig7v-phrasendrescher-1.2.2b.drv
waiting for locks or build slots...
/nix/store/wxagbp67ndn5yvm9fgz88ngrjlgg17jq-phrasendrescher-1.2.2b

@ryantm
Copy link
Member Author

ryantm commented Sep 2, 2018

Closing in favor of @r-ryantm doing these.

@ryantm ryantm closed this Sep 2, 2018
@samueldr
Copy link
Member

samueldr commented Sep 2, 2018

This one will need a manual intervention; it's not as simple as updating the version + hash.

@ryantm ryantm deleted the auto-update/phrasendrescher branch September 2, 2018 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants