how i write shell in go

555 views
Skip to first unread message

amirtag...@gmail.com

unread,
Oct 30, 2014, 1:16:32 PM10/30/14
to golan...@googlegroups.com
in php we write shell for hacking site they are Malicious code 
how we write shell in go?

Michael Hofmann

unread,
Oct 30, 2014, 1:43:48 PM10/30/14
to golan...@googlegroups.com
On 30.10.2014 18:16, amirtag...@gmail.com wrote:
> in php we write shell for hacking site they are Malicious code
> how we write shell in go?

http://catb.org/~esr/writings/unix-koans/script-kiddie.html

Dave Cheney

unread,
Oct 30, 2014, 6:42:29 PM10/30/14
to golan...@googlegroups.com
Michael Hoffman, that was not a helpful response.

omarsharif...@gmail.com

unread,
Oct 31, 2014, 1:34:36 PM10/31/14
to golan...@googlegroups.com
I've attempted this my self and got quite far, how ever I fell down when it came to job control. If I recall there is a problem setting the process group ID for running processes, or something like that.

However I do recall someone else writing a pretty complete she'll in go called elvish, or something like that. Have a Google about, there are some examples around

Julie Ann Lawson

unread,
Oct 31, 2014, 2:16:37 PM10/31/14
to omarsharif...@gmail.com, golan...@googlegroups.com
I'm maybe being super unfair here but I don't think that's what he meant by "write shell for hacking site they are Malicious code" :)

On Fri Oct 31 2014 at 3:34:46 PM <omarsharif...@gmail.com> wrote:
I've attempted this my self and got quite far, how ever I fell down when it came to job control. If I recall there is a problem setting the process group ID for running processes, or something like that.

However I do recall someone else writing a pretty complete she'll in go called elvish, or something like that. Have a Google about, there are some examples around

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emily Maier

unread,
Oct 31, 2014, 2:19:43 PM10/31/14
to golan...@googlegroups.com
On Fri, Oct 31, 2014 at 10:34:36AM -0700, omarsharif...@gmail.com wrote:
> I've attempted this my self and got quite far, how ever I fell down when it came to job control. If I recall there is a problem setting the process group ID for running processes, or something like that.
>
> However I do recall someone else writing a pretty complete she'll in go called elvish, or something like that. Have a Google about, there are some examples around
>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

I'm currently occasionally working on a hobby shell. I ended up mostly
ignoring the Go libraries for subprocesses and doing job control by
calling into libc directly.

Emily

o172.net

unread,
Oct 31, 2014, 3:59:11 PM10/31/14
to golan...@googlegroups.com
You can't write malicious code in Go - it's built into the language's dna by Google. Don't be evil. :) 

Julie Ann Lawson

unread,
Oct 31, 2014, 5:51:19 PM10/31/14
to o172.net, golan...@googlegroups.com
On Fri Oct 31 2014 at 5:59:20 PM o172.net <goo...@o172.net> wrote:
You can't write malicious code in Go 

Is that a challenge? ;) 

andrewc...@gmail.com

unread,
Nov 2, 2014, 5:56:49 PM11/2/14
to golan...@googlegroups.com, goo...@o172.net
Please don't get the Go runtime code flagged by anti-virus heuristics. Its a real dick move.

Dave Cheney

unread,
Nov 2, 2014, 6:00:03 PM11/2/14
to Andrew Chambers, golang-nuts, goo...@o172.net
This thread has ceased to be useful. Please do not continue to post to
this thread.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/-dJmgCum2OQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages