Skip to content

bnethash method

HarpyWar edited this page May 3, 2020 · 7 revisions

[GET] /bnethash/{password}

Return a hash from a password string hashed with x-sha algorithm (broken sha)

Example https://api.pvpgn.pro/bnethash/helloworld

Return SuccessResponse with a hash

{
    "data": "bf58704ddb23fad64a7ced94a151ad25930a23e6",
    "result": "success"
}

[POST] /bnethash

Create hashes from multiple passwords (up to 1000) per a request.

Example https://api.pvpgn.pro/bnethash

Post data must be json array ["hello", "world", "pvpgn", "rocks" ]

Return SuccessResponse with array of hashes

{
    "data": [
        "2e0236a3649381fe99cdce4b5b59adffa3167c7b",
        "c36a2128da856b540a5a4327d865f4fee56400da",
        "55f5e844ba4e32cd4297cde709ee82da534f7ca2",
        "030f04b47110697174594e45d75304ab359537cf"
    ],
    "result": "success"
}

[GET] /bnethash/crack/{hash}

Return cracked password up to 16 characters from xsha1 hash.

Example https://api.pvpgn.pro/bnethash/crack/7b74e0970b2e55e863a9a5f17ce74eaa7d6933e8

Return SuccessResponse with a password

{
    "data": "1234567890abcdef",
    "result": "success"
}

PHP usage example

<?php

$hash = "7b74e0970b2e55e863a9a5f17ce74eaa7d6933e8";
if ( $pass = crack_xsha1($hash) )
    echo "password is '" . $pass . "'";
else
    echo "crack failed";

function crack_xsha1($hash)
{
    $url = "https://api.pvpgn.pro/bnethash/crack/" . $hash;
    if ( $response = file_get_contents($url) )
	{
		$json = json_decode($response);
		if ($json->result == "success")
			return $json->data;
	}
    return false;
}