https://wiki.skullsecurity.org/index.php?title=DSRelay&feed=atom&action=historyDSRelay - Revision history2024-03-29T01:49:22ZRevision history for this page on the wikiMediaWiki 1.36.1https://wiki.skullsecurity.org/index.php?title=DSRelay&diff=2426&oldid=prevRon at 01:29, 28 July 20082008-07-28T01:29:57Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 01:29, 28 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l56">Line 56:</td>
<td colspan="2" class="diff-lineno">Line 56:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Note: Hydra must be set to one connection (-t1) for this to work.</pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Note: Hydra must be set to one connection (-t1) for this to work.</pre></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td colspan="2"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">==SVN==</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre>svn co http://svn.skullsecurity.org:81/ron/security/DSRelay</pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre>svn co http://svn.skullsecurity.org:81/ron/security/DSRelay</pre></div></td></tr>
<!-- diff cache key skullsec_wiki-wiki_:diff::1.12:old-2425:rev-2426 -->
</table>Ronhttps://wiki.skullsecurity.org/index.php?title=DSRelay&diff=2425&oldid=prevRon: New page: ==Dead (Damn?) Simple Relay==
* Name: Dead Simple Relay
* OS: Windows (for now)
* Language: C
* Path: http://svn.skullsecurity.org:81/ron/security/DSRelay
* Created: 2008-07
* State: In de...2008-07-28T01:29:35Z<p>New page: ==Dead (Damn?) Simple Relay== * Name: Dead Simple Relay * OS: Windows (for now) * Language: C * Path: http://svn.skullsecurity.org:81/ron/security/DSRelay * Created: 2008-07 * State: In de...</p>
<p><b>New page</b></p><div>==Dead (Damn?) Simple Relay==<br />
* Name: Dead Simple Relay<br />
* OS: Windows (for now)<br />
* Language: C<br />
* Path: http://svn.skullsecurity.org:81/ron/security/DSRelay<br />
* Created: 2008-07<br />
* State: In development<br />
* License: BSD<br />
<br />
==TODO==<br />
* Move the relay stuff into a module<br />
* Add support for *nix<br />
* Clean up the commandline interface<br />
<br />
==Description==<br />
This is essentially an N-way relay for sockets. It can listen on a port and connect outbound to any number of others. This type of relay can be useful for penetration testing; the attacker exploits a server to get a shell, drops this on, and can relay additional attacks through it. <br />
<br />
<pre>Usage: dsrelay [options] [<host:port> [<host:port>[<host:port>[...]]]]<br />
<br />
Options<br />
-l <port> Listen for incoming connections<br />
-w Wait for an incoming connection before making outbound<br />
connections (must be in listen mode). Use multiple 'w's to<br />
wait for multiple incoming connections (-ww, -www, -www, ...)<br />
-W <N> As -w, but wait for N incoming connections<br />
-v Be verbose (print notifications for connects/disconnects)<br />
-vv Be very verbose (print notifications for packets)<br />
-d Show raw data<br />
-dd Show raw data with some context<br />
-s Sanitize the raw data (replace non-printable characters,<br />
including newlines)<br />
-t <N> Terminate when there are <=N active connections (default 0)<br />
Note: only happens after waiting (-w) threshold is reached<br />
-T Terminates when any connection closes<br />
-e Terminate on any winsock error (eg, failed connection)<br />
-r Restarts each outbound connection when any connection ends<br />
<br />
Either -l or multiple outgoing connections must be given.<br />
<br />
Example 1, to create a relay between localhost and Google, watching data:<br />
c:\> dsrelay -vv -dd -eT -w -l 80 www.google.ca:80<br />
<br />
Example 2, to create an outbound-only tunnel to Google, watching data:<br />
c:\> dsrelay -eT localhost:4444 www.google.ca:80<br />
<br />
Example 3, to create a tunnel to a locally-running VNC server, with a monitor<br />
(listens on 5901 (vnc:1), relays data to 5900 (vnc:0), and copies it<br />
to 4444 (presumably a netcat listener)<br />
c:\> dsrelay -w -e -T -l 5901 localhost:5900 localhost:4444<br />
<br />
Example 4, to forward a Hydra attack against a FTP server<br />
(here, we use a second connection (probably a netcat client) to<br />
the connection. Every time Hydra reconnects, the connection resets,<br />
but when the other disconnects, it falls below the threshold of 1<br />
connection and the session terminates.<br />
Note: Hydra must be set to one connection (-t1) for this to work.</pre><br />
<br />
<pre>svn co http://svn.skullsecurity.org:81/ron/security/DSRelay</pre></div>Ron