Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chores: version updates #72

Merged
merged 5 commits into from Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.18

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Test
run: go test .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yml
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 5m
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-binary.yml
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
-
name: "Check out code"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: "Set up Go"
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: 1.18
-
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,5 +1,5 @@
FROM golang:1.16.6-alpine as build-env
RUN GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
FROM golang:1.18-alpine as build-env
RUN go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest

FROM alpine:latest
RUN apk add --no-cache bind-tools ca-certificates
Expand Down
42 changes: 21 additions & 21 deletions README.md
Expand Up @@ -35,10 +35,10 @@ SimpleHTTPserver is a go enhanced version of the well known python simplehttpser

# Installing SimpleHTTPserver

SimpleHTTPserver requires **go1.14+** to install successfully. Run the following command to get the repo -
SimpleHTTPserver requires **go1.17+** to install successfully. Run the following command to get the repo -

```sh
GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
```

# Usage
Expand All @@ -49,25 +49,25 @@ simplehttpserver -h

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

| Flag | Description | Example |
| ------------- | ------------------------------------------------------- | ------------------------------------------------ |
| listen | Configure listening ip:port (default 127.0.0.1:8000) | simplehttpserver -listen 127.0.0.1:8000 |
| path | Fileserver folder (default current directory) | simplehttpserver -path /var/docs |
| verbose | Verbose (dump request/response, default false) | simplehttpserver -verbose |
| tcp | TCP server (default 127.0.0.1:8000) | simplehttpserver -tcp 127.0.0.1:8000 |
| tls | Enable TLS for TCP server | simplehttpserver -tls |
| rules | File containing yaml rules | simplehttpserver -rules rule.yaml |
| upload | Enable file upload in case of http server | simplehttpserver -upload |
| max-file-size | Max Upload File Size (default 50 MB) | simplehttpserver -max-file-size 100 |
| sandbox | Enable sandbox mode | simplehttpserver -sandbox |
| https | Enable HTTPS in case of http server | simplehttpserver -https |
| cert | HTTPS/TLS certificate (self generated if not specified) | simplehttpserver -cert cert.pem |
| key | HTTPS/TLS certificate private key | simplehttpserver -key cert.key |
| domain | Domain name to use for the self-generated certificate | simplehttpserver -domain projectdiscovery.io |
| basic-auth | Basic auth (username:password) | simplehttpserver -basic-auth user:password |
| realm | Basic auth message | simplehttpserver -realm "insert the credentials" |
| version | Show version | simplehttpserver -version |
| silent | Show only results | simplehttpserver -silent |
| Flag | Description | Example |
|------------------|---------------------------------------------------------|----------------------------------------------------|
| `-listen` | Configure listening ip:port (default 127.0.0.1:8000) | `simplehttpserver -listen 127.0.0.1:8000` |
| `-path` | Fileserver folder (default current directory) | `simplehttpserver -path /var/docs` |
| `-verbose` | Verbose (dump request/response, default false) | `simplehttpserver -verbose` |
| `-tcp` | TCP server (default 127.0.0.1:8000) | `simplehttpserver -tcp 127.0.0.1:8000` |
| `-tls` | Enable TLS for TCP server | `simplehttpserver -tls` |
| `-rules` | File containing yaml rules | `simplehttpserver -rules rule.yaml` |
| `-upload` | Enable file upload in case of http server | `simplehttpserver -upload` |
| `-max-file-size` | Max Upload File Size (default 50 MB) | `simplehttpserver -max-file-size 100` |
| `-sandbox` | Enable sandbox mode | `simplehttpserver -sandbox` |
| `-https` | Enable HTTPS in case of http server | `simplehttpserver -https` |
| `-cert` | HTTPS/TLS certificate (self generated if not specified) | `simplehttpserver -cert cert.pem` |
| `-key` | HTTPS/TLS certificate private key | `simplehttpserver -key cert.key` |
| `-domain` | Domain name to use for the self-generated certificate | `simplehttpserver -domain projectdiscovery.io` |
| `-basic-auth` | Basic auth (username:password) | `simplehttpserver -basic-auth user:password` |
| `-realm` | Basic auth message | `simplehttpserver -realm "insert the credentials"` |
| `-version` | Show version | `simplehttpserver -version` |
| `-silent` | Show only results | `simplehttpserver -silent` |

### Running simplehttpserver in the current folder

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Expand Up @@ -2,4 +2,4 @@

## Reporting a Vulnerability

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.
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.
9 changes: 8 additions & 1 deletion go.mod
@@ -1,10 +1,17 @@
module github.com/projectdiscovery/simplehttpserver

go 1.14
go 1.17

require (
github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
github.com/projectdiscovery/gologger v1.1.4
github.com/projectdiscovery/sslcert v0.0.0-20210416140253-8f56bec1bb5e
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/json-iterator/go v1.1.10 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
)