News for hackers. Stuff that matters.
Re:Traitor: Linux privilege escalation made easy by larpnet on Monday February 22, 2021 @10:24AM (#26225545)
How do you plan to use this universally across compromised systems, if they don't have Go to compile this?

A better solution might be https://github.com/Frissi0n/GTFONow which is written in python without dependencies and supports Py2/3. I would expect this to work on more hosts.

Re:Traitor: Linux privilege escalation made easy by dbrgn on Monday February 22, 2021 @10:29AM (#26225579)
I'm confused. Why should you need Go on the target system? Go generates a static binary, that runs anywhere as long as the architecture matches.
Re:Traitor: Linux privilege escalation made easy by sharpnet on Monday February 22, 2021 @02:15PM (#26229063)
Responding here under a new account since due to being banned for all the downvotes.

People here are viewing this with their developer hat on, download a static binary? Sure what’s the issue?

For people who work in security will know that you encounter systems with all sorts of architectures and operating systems.

As a pentester do you want to keep 14 different binaries for each security tool you have so that you are prepared for all platforms and architectures?

As a CTF player do you want to afford the time to compile this for whatever platform you encounter?

That’s why tools like linenum.sh and linpeas.sh are written in bash.

They run on anything.

Re:Traitor: Linux privilege escalation made easy by 0x003 on Monday February 22, 2021 @04:24PM (#26230840)
I mean typically yes, I keep binaries around for whatever system I'm targeting. 32+64bit binaries for linux and windows (4 total) will cover about 99% of any machines you're likely to come across. I think you've taken more of an issue with this than is necessary, seeing as if I can run linpeas or linenum I am probably not going to have an issue running a static binary, and it's really a matter of personal choice.
Re:Traitor: Linux privilege escalation made easy by SXX on Monday February 22, 2021 @07:10PM (#26232340)
Unlike most of compiled languages Go have no-effort cross-compile for different architecture. All you need is to specify GOARCH. So what's problem with compiling different binaries?
Re:Traitor: Linux privilege escalation made easy by mindwok on Monday February 22, 2021 @08:59PM (#26233046)
There's no way to achieve this...even writing things in POSIX is going to be incompatible on some systems. Having a different binary for different systems is necessary. Even writing things in an interpreted language e.g. Python still requires at least Python binaries on all your systems, and that's ignoring dependencies. It doesn't get much more convenient than Golang's cross compilation.
Re:Traitor: Linux privilege escalation made easy by FDSGSG on Monday February 22, 2021 @08:46PM (#26232970)
>That’s why tools like linenum.sh and linpeas.sh are written in bash.

I've encountered many systems without bash.

Re:Traitor: Linux privilege escalation made easy by gpm on Monday February 22, 2021 @10:27AM (#26225566)
You ship binaries not source code.
Re:Traitor: Linux privilege escalation made easy by seniorivn on Monday February 22, 2021 @10:32AM (#26225625)
you can always ship compiler with source code
Re:Traitor: Linux privilege escalation made easy by dbrgn on Monday February 22, 2021 @10:34AM (#26225639)
That is... not wrong.
Re:Traitor: Linux privilege escalation made easy by qubex on Monday February 22, 2021 @11:08AM (#26226105)
“Not wrong” is the best kind of correctness.
Re:Traitor: Linux privilege escalation made easy by nayuki on Monday February 22, 2021 @01:00PM (#26227806)
"Not even wrong" is a great sort of wrongness
Re:Traitor: Linux privilege escalation made easy by userbinator on Monday February 22, 2021 @10:38PM (#26233573)
...also known as an interpreter.