Linux

Posted on Sep 03 2019 - 8:33pm

 

Files

Installation

  1. Put phpkeyattack into a directory path on your machine  e.g. /usr/local/bin
  2. chmod 755 /path/to/phpkeyattack
  3. Put phpkeyattack.ini into the same directory
  4. Download the test.dict for testing purposes

Requirements

  • Your php standard installation may not have "curl" installed
  • You may need to instal the following pacakges on your machine
    • curl, php-curl or php5-curl

Test

phpkeyattack -dict </path/to/>test.dict -key jade
phpkeyattack -dict </path/to/>test.dict -kurl https://satoshistreasure.xyz/k1

Usage

phpkeyattack -listkeys

  • Shows you the -key [name] options available from the INI file.
  • Shows you URLs for -kurl for each key

phpkeyattack [-ini <ini file>] -dict <dict file> -key <key name>

  • Use the words in the dictionary file against a specific key name from the INI file
  • -ini is optional
  • -key <key name> is from -listkeys

phpkeyattack [-ini <ini file>] -dict <dict file> -kurl <URL to key page>

phpkeyattack [-ini <ini file>] -dict <dict file> -kfile <enc key file>

  • Use the words in the dictionary file against a specific file containing the encoded message
  • The file should only contain the contents of the variable 'encryptedMsg' from th source of the HTML page
  • -ini is optional
  • -key <key name> is from -listkeys