我们需要获取shell脚本的url目标。
以下是示例网址:public static void main(String [] args)
我们需要从中获取https://www.youtube.com/redirect?redir_token=mOp84mPtLg7Wn3WhmrMrXzmskD58MTU3MTc5NDgwMEAxNTcxNzA4NDAw&q=https%3A%2F%2Fwww.twitter.com%2FMicrosoftDE&event=channel_description
,因为它会重定向到此处。
使用curl和检查标头会显示https://twitter.com/MicrosoftDE
,我们看不到p3p: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more info."
答案 0 :(得分:1)
尝试一下
echo "https://www.youtube.com/redirect?redir_token=mOp84mPtLg7Wn3WhmrMrXzmskD58MTU3MTc5NDgwMEAxNTcxNzA4NDAw&q=https%3A%2F%2Fwww.twitter.com%2FMicrosoftDE&event=channel_description"| grep -o "=https.*"| sed 's/%2F/\//g'| sed 's/%3A/:/g'| sed 's/^.//'| sed 's/&.*//'
说明: 我们可以获取以= https
开头的网址