0% found this document useful (0 votes)
118 views6 pages

Creating an SSH Botnet in Python

This document discusses creating a basic SSH botnet using Python. It explains that the code will use object-oriented concepts and the pexpect library's pxssh module to connect to SSH servers and store those connections. The connections can then be sent commands from the botnet program. Creating the botnet involves making a client class to handle each connection and storing clients in a list. The next step discussed is SSH bruteforcing.

Uploaded by

JOHN
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views6 pages

Creating an SSH Botnet in Python

This document discusses creating a basic SSH botnet using Python. It explains that the code will use object-oriented concepts and the pexpect library's pxssh module to connect to SSH servers and store those connections. The connections can then be sent commands from the botnet program. Creating the botnet involves making a client class to handle each connection and storing clients in a list. The next step discussed is SSH bruteforcing.

Uploaded by

JOHN
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
  • Basic SSH BotNet Introduction
  • Preamble
  • What is SSH?
  • How it works
  • Creating our program
  • Next

Basic SSH botNet

Hacking with Python #8


Preamble
Our code will use some object
oriented concepts
If you have not worked with classes
and objects before I suggest looking
at my intermediate python tutorials
What is a SSH?
An encrypted remote terminal connection
Allows command line access to the device
Most managed networks will use SSH for
management of routers, switches and
servers.
SHH is simple yet complex, Some reading
would be highly beneficial.
How it works
We use the python pexpect library with the pxssh
module to connect to the ssh server.
We then store that connection and leave it waiting
for a command
Then we send a command to all of the connections
open in the botNet
(Because the current version of [Link] is broken I
have supplied a fixed version in the tutorial folder)
Creating our program
Make sure you have the [Link] file
in the same folder as our [Link]
file
We will create a client class which
will hand each of our connection
We will store each client in a list.
Next
SSH bruteforce

Feel Free to leave questions in the


comments Ill try to answer all of
them.

Basic SSH botNet
Hacking with Python #8
Preamble
• Our code will use some object 
oriented concepts
• If you have not worked with classes 
and objects before I sugge
What is a SSH?
• An encrypted remote terminal connection
• Allows command line access to the device
• Most managed networks w
How it works
• We use the python pexpect library with the pxssh 
module to connect to the ssh server.
• We then store that co
Creating our program
• Make sure you have the pxssh.py file 
in the same folder as our botnet.py 
file
• We will create a cli
Next
• SSH bruteforce
• Feel Free to leave questions in the 
comments I’ll try to answer all of 
them.

You might also like