Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@


<h2>Understanding DNS-Shell</h2>
<p>The Payload is generated when the sever script is invoked and it simply utilizes nslookup to perform the queries and query the server for new commands the server then listens on port 53 for incoming communications, once payload is executed on the target machine the server will spawn an interactive shell.</p>
<p>Once the channel is established the payload will continously query the server for commands if a new command is entered, it will execute it and return the result back to the server.</p>
<p>The Payload is generated when the server script is invoked. It utilizes nslookup to query the server for new commands. The server listens on port 53 for incoming connections. Once the payload is executed on the target machine, the server will spawn an interactive shell.</p>
<p>After a channel is established, the payload will continously query the server for commands. If a new command is entered, it will execute and return the result back to the server.</p>


<h2>Using DNS-Shell</h2>
<p>Running DNS-Shell is relatively simple</p>
<p>DNS-Shell supports two mode of operations direct and recursive modes:
<p>DNS-Shell supports two mode of operations: direct and recursive modes.
<ul>
<li>Perform a git clone from our DNS-shell <a href="https://github.com/sensepost/DNS-Shell">Github page</a></li>
<li>pip install -r requirements.txt (This may need to be prepended with "sudo -H")</li>
<li>DNS-Shell direct mode: sudo python DNS-Shell.py -l -d [Server IP]</li>
<li>DNS-Shell recursive mode: sudo python DNS-Shell.py -l -r [Domain]</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
dnslib