Spiking
Spiking sends random characters to attempt to overflow the buffer and break the program
Used
vulnserveron a Win10 VM and Kali Linux to practice this

Available Commands

Using
generic_send_tcpto attempt to spikeSyntax -
./generic_send_tcp TARGET_IP PORT SPIKE_SCRIPT SKIPVAR SKIPSTR
The
SPIKE_SCRIPTcan be something like this
s_readline();
s_string("STATS ");
s_string_variable("0");Trying this against
vulnserver STATS- this was not vulnerable

Trying the same against
vulnserver TRUNcommandThis turned out to be vulnerable - immunity debugger shows an
Access violation when executingmessageThis caused
vulnserverto crash

This caused the
EBPto overflow and spilled into theEIPOnce we control the
EIPwe can inject malicious code.

Last updated