-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Thank you for the great project!
I am using it in my work.
Does it support IPv6?
// Hook the socket function and replace the IP and port with our burp ones.
Interceptor.attach(Module.findExportByName(null, "socket"), {
onEnter: function(args) {
// AF_INET(IPv4) == 2, AF_INET6(IPv6) == 10
var overwrite = false;
if (Process.platform === 'linux' && sockaddr != null && ptr(sockaddr).readU16() == 2) {
overwrite = true;
}
else if (Process.platform === 'darwin' && sockaddr != null && ptr(sockaddr).add(0x1).readU8() == 2) {
overwrite = true;
}
if (overwrite) {
console.log(`[*] Overwrite sockaddr as our burp proxy ip and port --> ${BURP_PROXY_IP}:${BURP_PROXY_PORT}`);
ptr(sockaddr).add(0x2).writeU16(byteFlip(BURP_PROXY_PORT));
ptr(sockaddr).add(0x4).writeByteArray(convertIpToByteArray(BURP_PROXY_IP));
}
},
onLeave: function(retval) {}
})
Metadata
Metadata
Assignees
Labels
No labels