Skip to content

Commit

Permalink
fix: add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Jan 13, 2024
1 parent 33edc36 commit c051806
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/cmd/cc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func main() {
if err != nil {
cc.CliFatalError("Read %s: %v", *config, err)
} else if *ssh_relay_port != "" {
cc.CliMsg("Copy ~/.emp3r0r to client host, "+
"then run `emp3r0r -connect_relay relay_ip:%s -relayed_port [%s]` "+
"(C2 port, or Shadowsocks port %s if you are using it)",
*ssh_relay_port, cc.RuntimeConfig.CCPort, cc.RuntimeConfig.ShadowsocksPort)
err = tun.SSHRemoteFwdServer(*ssh_relay_port,
cc.RuntimeConfig.ShadowsocksPassword,
cc.RuntimeConfig.SSHHostKey)
Expand Down
2 changes: 2 additions & 0 deletions core/emp3r0r
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ case "$1" in
echo -ne "\e[36mCC names (can be IPs and/or domain names), separate with space:\n>>\e[0m "
read -r hosts
"$cc" -gencert "$hosts"
info "Generated certs, re-run $0"
exit
}

# Run C2 server with tmux UI
Expand Down

0 comments on commit c051806

Please sign in to comment.