Jump to content
Sign in to follow this  
sleed

[RST] Iframe Injection Detect Script

Recommended Posts

#!/bin/bash
# Iframe Detect Script By [sleed]/
# O_O
# Usage: Copy all iframedetect.txt in a *.sh file . After, chmod +x *.sh file, example: iframedetect.sh, chmod +x iframedetexct.sh ,
# Execute: sh iframedetect.sh
# All info's go to /var/iframedetect/alert.txt
# Thank You!
echo 'Iframe Detect Script'
blacksite='1337trojan.org'
echo ''
path=/var/www/
echo $search
sleep 1
mkdir /var/iframedetect
directory=/var/iframedetect
find $path \( -regex '.*\.js$' -o -regex '.*\.php$' -o -regex '.*\.htm$' -o -regex '.*\.png$' -o -regex '.*\.css$' \) -print0 | xargs -0 egrep -ir "$blacksite" /dev/null | sort >> $directory/alert.txt
sleep 1
cat $directory/alert.txt |grep '</iframe>' > $directory/alert.txt

Nu e mare lucru, dar poate va ajuta daca aveti pe site un posibil Cross Frame Scripting.

  • Upvote 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...