Skip to content

Instantly share code, notes, and snippets.

@toodooleedoo
Created February 3, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save toodooleedoo/23b6adda42882e358626 to your computer and use it in GitHub Desktop.
Save toodooleedoo/23b6adda42882e358626 to your computer and use it in GitHub Desktop.
Login through Siteminder to AEM and report landing page.
curl --dump-header headers.txt --silent 'https://<<<CUT>>>/siteminderagent/forms/login.fcc' -H 'Host: <<<CUT>>>' -d "target=http%3A%2F%2F<<<CUT>>>%2Fpublish%2F" -d "USER=soukene" -d "PASSWORD=<<CUT>>>" -o /dev/null
SESSION=`grep SMSESSION headers.txt |sed -e 's/.*SMSESSION=//g;s/;.*//g;'`
curl --silent -k -H "Cookie: SMSESSION=${SESSION}" "https://<<<CUT>>>/publish" -L -w 'Last URL was: %{url_effective}\n' -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment