Skip to content

Commit f59aafd

Browse files
authored
Merge pull request #72 from projectdiscovery/go_install
chores: version updates
2 parents e04edde + 9f02213 commit f59aafd

File tree

7 files changed

+40
-33
lines changed

7 files changed

+40
-33
lines changed

.github/workflows/build-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Set up Go
14-
uses: actions/setup-go@v2
14+
uses: actions/setup-go@v3
1515
with:
16-
go-version: 1.15
16+
go-version: 1.18
1717

1818
- name: Check out code
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Test
2222
run: go test .

.github/workflows/lint-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Run golangci-lint
15-
uses: golangci/golangci-lint-action@v2
15+
uses: golangci/golangci-lint-action@v3
1616
with:
1717
version: latest
1818
args: --timeout 5m

.github/workflows/release-binary.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
steps:
1212
-
1313
name: "Check out code"
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
1717
-
1818
name: "Set up Go"
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.16
21+
go-version: 1.18
2222
-
2323
env:
2424
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM golang:1.16.6-alpine as build-env
2-
RUN GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
1+
FROM golang:1.18-alpine as build-env
2+
RUN go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
33

44
FROM alpine:latest
55
RUN apk add --no-cache bind-tools ca-certificates

README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ SimpleHTTPserver is a go enhanced version of the well known python simplehttpser
3535

3636
# Installing SimpleHTTPserver
3737

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 -
3939

4040
```sh
41-
GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
41+
go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
4242
```
4343

4444
# Usage
@@ -49,25 +49,25 @@ simplehttpserver -h
4949

5050
This will display help for the tool. Here are all the switches it supports.
5151

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` |
7171

7272
### Running simplehttpserver in the current folder
7373

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## Reporting a Vulnerability
44

5-
DO NOT CREATE AN ISSUE to report a security problem. Instead, please send an email to security@projectdiscovery.io and we will acknowledge it within 3 working days.
5+
DO NOT CREATE AN ISSUE to report a security problem. Instead, please send an email to [security@projectdiscovery.io](mailto:security@projectdiscovery.io), and we will acknowledge it within 3 working days.

go.mod

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
module github.com/projectdiscovery/simplehttpserver
22

3-
go 1.14
3+
go 1.17
44

55
require (
66
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
77
github.com/projectdiscovery/gologger v1.1.4
88
github.com/projectdiscovery/sslcert v0.0.0-20210416140253-8f56bec1bb5e
99
gopkg.in/yaml.v2 v2.4.0
1010
)
11+
12+
require (
13+
github.com/json-iterator/go v1.1.10 // indirect
14+
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
15+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
16+
github.com/modern-go/reflect2 v1.0.1 // indirect
17+
)

0 commit comments

Comments
 (0)