Skip to content

Commit

Permalink
Move everything under v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tg committed Apr 4, 2024
1 parent b329a50 commit 2b4fd4c
Show file tree
Hide file tree
Showing 888 changed files with 56,832 additions and 26,449 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Download the latest flightsim binary for your OS from the [GitHub Releases](https://github.com/alphasoc/flightsim/releases) page. Alternatively, the utility can be built using [Golang](https://golang.org/doc/install) in any environment (e.g. Linux, MacOS, Windows), as follows:

```
go install github.com/alphasoc/flightsim@latest
go install github.com/alphasoc/flightsim/v2@latest
```

## Running Network Flight Simulator
Expand Down
14 changes: 0 additions & 14 deletions go.mod

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/get/get.go → v2/cmd/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"text/tabwriter"
"time"

"github.com/alphasoc/flightsim/wisdom"
"github.com/alphasoc/flightsim/v2/wisdom"
)

var Version string
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions cmd/run/run.go → v2/cmd/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"time"

"github.com/alphasoc/flightsim/simulator"
"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/wisdom"
"github.com/alphasoc/flightsim/v2/simulator"
"github.com/alphasoc/flightsim/v2/utils"
"github.com/alphasoc/flightsim/v2/wisdom"
)

var (
Expand Down
14 changes: 14 additions & 0 deletions v2/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module github.com/alphasoc/flightsim/v2

go 1.19

require (
github.com/cretz/bine v0.2.0
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf
github.com/lrstanley/girc v0.0.0-20240317214256-a4a3d96369cb
github.com/pkg/errors v0.9.1
golang.org/x/crypto v0.21.0
golang.org/x/net v0.23.0
)

require golang.org/x/sys v0.18.0 // indirect
25 changes: 13 additions & 12 deletions go.sum → v2/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@ github.com/cretz/bine v0.2.0 h1:8GiDRGlTgz+o8H9DSnsl+5MeBK4HsExxgl6WgzOCuZo=
github.com/cretz/bine v0.2.0/go.mod h1:WU4o9QR9wWp8AVKtTM1XD5vUHkEqnf2vVSo6dBqbetI=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/inhies/go-bytesize v0.0.0-20201103132853-d0aed0d254f8 h1:RrGCja4Grfz7QM2hw+SUZIYlbHoqBfbvzlWRT3seXB8=
github.com/inhies/go-bytesize v0.0.0-20201103132853-d0aed0d254f8/go.mod h1:KrtyD5PFj++GKkFS/7/RRrfnRhAMGQwy75GLCHWrCNs=
github.com/lrstanley/girc v0.0.0-20230507010347-3c8fa7715074 h1:Uuzmwjx9dzTIfh9bdK9l5y9DQgpmgEFaifJGB5jHxb4=
github.com/lrstanley/girc v0.0.0-20230507010347-3c8fa7715074/go.mod h1:lgrnhcF8bg/Bd5HA5DOb4Z+uGqUqGnp4skr+J2GwVgI=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf h1:FtEj8sfIcaaBfAKrE1Cwb61YDtYq9JxChK1c7AKce7s=
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf/go.mod h1:yrqSXGoD/4EKfF26AOGzscPOgTTJcyAwM2rpixWT+t4=
github.com/lrstanley/girc v0.0.0-20240317214256-a4a3d96369cb h1:k2h6Qb3FPzxq/Dh43WOfuzIUs9g3PUGbV01UQccNLMI=
github.com/lrstanley/girc v0.0.0-20240317214256-a4a3d96369cb/go.mod h1:lgrnhcF8bg/Bd5HA5DOb4Z+uGqUqGnp4skr+J2GwVgI=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 h1:wjuX4b5yYQnEQHzd+CBcrcC6OVR2J1CN6mUy0oSxIPo=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand Down
4 changes: 2 additions & 2 deletions main.go → v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/alphasoc/flightsim/cmd/get"
"github.com/alphasoc/flightsim/cmd/run"
"github.com/alphasoc/flightsim/v2/cmd/get"
"github.com/alphasoc/flightsim/v2/cmd/run"
)

var Version = ""
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion simulator/dga.go → v2/simulator/dga.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

var dgaTLDs = []string{".com", ".net", ".biz", ".top", ".info", ".xyz", ".space"}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion simulator/oast.go → v2/simulator/oast.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

// InteractshDefaultDomains is a list of default domains used by Interactsh.
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion simulator/simulator.go → v2/simulator/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"strings"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

// HostMsgFormatter allows a simulator to implement a custom HostMsg method to be called in
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions simulator/spambot.go → v2/simulator/spambot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strings"
"time"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

//List of domain from https://github.com/mailcheck/mailcheck/wiki/List-of-Popular-Domains
// List of domain from https://github.com/mailcheck/mailcheck/wiki/List-of-Popular-Domains
var domains = []string{
/* Default domains included */
"aol.com", "att.net", "comcast.net", "facebook.com", "gmail.com", "gmx.com", "googlemail.com",
Expand Down
2 changes: 1 addition & 1 deletion simulator/ssh-exfil.go → v2/simulator/ssh-exfil.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math/rand"

simssh "github.com/alphasoc/flightsim/simulator/ssh"
simssh "github.com/alphasoc/flightsim/v2/simulator/ssh"
bytesize "github.com/inhies/go-bytesize"
)

Expand Down
4 changes: 2 additions & 2 deletions simulator/ssh-transfer.go → v2/simulator/ssh-transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"strings"

simssh "github.com/alphasoc/flightsim/simulator/ssh"
"github.com/alphasoc/flightsim/utils"
simssh "github.com/alphasoc/flightsim/v2/simulator/ssh"
"github.com/alphasoc/flightsim/v2/utils"
"golang.org/x/crypto/ssh"

bytesize "github.com/inhies/go-bytesize"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion simulator/ssh/client.go → v2/simulator/ssh/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"time"

"github.com/alphasoc/flightsim/simulator/ssh/fxp"
"github.com/alphasoc/flightsim/v2/simulator/ssh/fxp"
"github.com/inhies/go-bytesize"
"golang.org/x/crypto/ssh"
)
Expand Down
2 changes: 1 addition & 1 deletion simulator/ssh/fxp/fxp.go → v2/simulator/ssh/fxp/fxp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"bytes"
"errors"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

// Only SSH_FX_OK error code is needed for our purposes.
Expand Down
9 changes: 5 additions & 4 deletions simulator/ssh/packet.go → v2/simulator/ssh/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"io"

"github.com/alphasoc/flightsim/simulator/ssh/fxp"
"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/simulator/ssh/fxp"
"github.com/alphasoc/flightsim/v2/utils"
)

// Packet interface represents specific sftp packet type (data section to be exact)
Expand Down Expand Up @@ -101,8 +101,9 @@ func OpenResp(data []byte) (*fxp.Handle, error) {

// StatusResp parses an SSH/SFTP status response. A status response may be returned
// for any client request. In particular, we care about:
// 1. status responses to write requests (success/error cases).
// 2. status responses carrying errors.
// 1. status responses to write requests (success/error cases).
// 2. status responses carrying errors.
//
// A Status packet and an error are returned.
func StatusResp(data []byte) (*fxp.Status, error) {
status := &fxp.Status{}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion simulator/tunnel-dns.go → v2/simulator/tunnel-dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/alphasoc/flightsim/utils"
"github.com/alphasoc/flightsim/v2/utils"
)

// Tunnel simulator.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
44 changes: 44 additions & 0 deletions v2/vendor/github.com/pkg/errors/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Loading

0 comments on commit 2b4fd4c

Please sign in to comment.