@@ -35,10 +35,10 @@ SimpleHTTPserver is a go enhanced version of the well known python simplehttpser
35
35
36
36
# Installing SimpleHTTPserver
37
37
38
- SimpleHTTPserver requires ** go1.14 +** to install successfully. Run the following command to get the repo -
38
+ SimpleHTTPserver requires ** go1.17 +** to install successfully. Run the following command to get the repo -
39
39
40
40
``` sh
41
- GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
41
+ go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
42
42
```
43
43
44
44
# Usage
@@ -49,25 +49,25 @@ simplehttpserver -h
49
49
50
50
This will display help for the tool. Here are all the switches it supports.
51
51
52
- | Flag | Description | Example |
53
- | ------------- | ------------------------------------------------------- | ------------------------------------------------ |
54
- | listen | Configure listening ip: port (default 127.0.0.1:8000) | simplehttpserver -listen 127.0.0.1:8000 |
55
- | path | Fileserver folder (default current directory) | simplehttpserver -path /var/docs |
56
- | verbose | Verbose (dump request/response, default false) | simplehttpserver -verbose |
57
- | tcp | TCP server (default 127.0.0.1:8000) | simplehttpserver -tcp 127.0.0.1:8000 |
58
- | tls | Enable TLS for TCP server | simplehttpserver -tls |
59
- | rules | File containing yaml rules | simplehttpserver -rules rule.yaml |
60
- | upload | Enable file upload in case of http server | simplehttpserver -upload |
61
- | max-file-size | Max Upload File Size (default 50 MB) | simplehttpserver -max-file-size 100 |
62
- | sandbox | Enable sandbox mode | simplehttpserver -sandbox |
63
- | https | Enable HTTPS in case of http server | simplehttpserver -https |
64
- | cert | HTTPS/TLS certificate (self generated if not specified) | simplehttpserver -cert cert.pem |
65
- | key | HTTPS/TLS certificate private key | simplehttpserver -key cert.key |
66
- | domain | Domain name to use for the self-generated certificate | simplehttpserver -domain projectdiscovery.io |
67
- | basic-auth | Basic auth (username: password ) | simplehttpserver -basic-auth user: password |
68
- | realm | Basic auth message | simplehttpserver -realm "insert the credentials" |
69
- | version | Show version | simplehttpserver -version |
70
- | silent | Show only results | simplehttpserver -silent |
52
+ | Flag | Description | Example |
53
+ | ------------------ | --------------------------------------------------------- | ---------------------------------------------------- |
54
+ | ` - listen` | Configure listening ip: port (default 127.0.0.1:8000) | ` simplehttpserver -listen 127.0.0.1:8000 ` |
55
+ | ` - path` | Fileserver folder (default current directory) | ` simplehttpserver -path /var/docs ` |
56
+ | ` - verbose` | Verbose (dump request/response, default false) | ` simplehttpserver -verbose ` |
57
+ | ` - tcp` | TCP server (default 127.0.0.1:8000) | ` simplehttpserver -tcp 127.0.0.1:8000 ` |
58
+ | ` - tls` | Enable TLS for TCP server | ` simplehttpserver -tls ` |
59
+ | ` - rules` | File containing yaml rules | ` simplehttpserver -rules rule.yaml ` |
60
+ | ` - upload` | Enable file upload in case of http server | ` simplehttpserver -upload ` |
61
+ | ` - max-file-size` | Max Upload File Size (default 50 MB) | ` simplehttpserver -max-file-size 100 ` |
62
+ | ` - sandbox` | Enable sandbox mode | ` simplehttpserver -sandbox ` |
63
+ | ` - https` | Enable HTTPS in case of http server | ` simplehttpserver -https ` |
64
+ | ` - cert` | HTTPS/TLS certificate (self generated if not specified) | ` simplehttpserver -cert cert.pem ` |
65
+ | ` - key` | HTTPS/TLS certificate private key | ` simplehttpserver -key cert.key ` |
66
+ | ` - domain` | Domain name to use for the self-generated certificate | ` simplehttpserver -domain projectdiscovery.io ` |
67
+ | ` - basic-auth` | Basic auth (username: password ) | ` simplehttpserver -basic-auth user:password ` |
68
+ | ` - realm` | Basic auth message | ` simplehttpserver -realm "insert the credentials" ` |
69
+ | ` - version` | Show version | ` simplehttpserver -version ` |
70
+ | ` - silent` | Show only results | ` simplehttpserver -silent ` |
71
71
72
72
### Running simplehttpserver in the current folder
73
73
0 commit comments