mirror of https://xfnw.ttm.sh/git/huntnw.git
change agent
This commit is contained in:
parent
f79b2e8cff
commit
280bb20c36
2
crawly
2
crawly
|
@ -18,7 +18,7 @@ then
|
|||
|
||||
CRAWLED="./content/"`echo $1 | shasum | head -c 5`
|
||||
echo $CRAWLED
|
||||
curl $1 -m 1 -L -A "tser/1.0" > $TEMPIDC
|
||||
curl $1 -m 1 -L -A "huntnw/1.0" > $TEMPIDC
|
||||
|
||||
cat $TEMPIDC | grep href=\" | grep "https://" | grep -o "https:\/\/[^\"]*" | awk '/html$/ || /php$/ || /txt$/ || /\/$/ { print $0 }' >> $2
|
||||
cat $TEMPIDC | grep href=\" | grep "https://" | grep -o "https:\/\/[^\"]*" | awk '!/html$/ && !/php$/ && !/txt$/ && !/\/$/ { print $0"/" }' >> $2
|
||||
|
|
Loading…
Reference in New Issue