본문 바로가기
Programming Language/Shell

lfi scan 본격.

by 단북 2009. 3. 3.

#!/bin/bash
if [ X$1 = Xscan ]

        then

                find ./ -type f > scanlist
        else

        if [ X$1 = Xhtaccess ]

        then

                find ./ -name .htaccess > htaccesslist

                else

                        if [ X$1 = Xiframe ]

                                then find ./ -type f | xargs grep -li iframe > iframelist

        else

        if [ X$1 = Xhelp ]

        then
                echo "scan - scanlist"
                echo "htaccess - htaccesslist"
                echo "iframe - iframelist"
fi
fi
fi
fi