Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
Simple SH script
  • chroniccommand
    Posts: 1,389
    Heres a simple SH script I wrote to automate some stuff when you have a backdoor on a server.

    #!/bin/sh
    #Simply sets some stuff up when you have a backdoor on a server

    alias ls=\"ls -als\"
    alias ps=\"ps -aux\"
    echo \"alias ls is now ls -als\"
    echo \"alias ps is now ps aux\"
    echo \"===Current dir:===\"
    pwd
    echo \"===Process list is at /tmp/psz===\"
    ps > /tmp/psz
    echo \"===Current shell:===\"
    echo $SHELL
    echo \"===System info:===\"
    uname -a
    echo \"===Online users:===\"
    w
    echo \"===Whoami : Id===\"
    whoami;id
    echo \"===Wget installed?:===\"
    which wget
    echo \"\nUseful commands:\"
    echo \"hostname\nwho\nlsmod\npasswd\nps -auxefw\nGood luck ;)\n--chroniccommand\"
  • Xin
    Posts: 3,251
    Nice you should add things like check if you can read /etc/passwd and stuff.
    Xin