Created
July 11, 2018 14:32
-
-
Save olleharstedt/592ef923f9f7f06f71c32950d662eed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$command = sprintf( | |
'echo -e "%s" | nc -U /var/run/docker.sock', | |
"GET /info HTTP/1.1\r\nHost: localhost\r\n" | |
); | |
echo '<pre>'; var_dump($command); echo '</pre>'; | |
var_dump(exec($command)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment