- Install https://simplesamlphp.org/ version 2.
- Put this into config/authsources.php:
'reflector' => [
'exampleauth:StaticSource',
'uid' => ['test'],
'eduPersonPrincipalName' => ['test@passkey.grnet.gr'],
'eduPersonAffiliation' => ['member', 'student'],
],
- Put this into metadata/saml20-idp-hosted.php:
$metadata['https://passkey.grnet.gr/example-idp'] = [
'host' => '__DEFAULT__',
'privatekey' => 'server1.pem',
'certificate' => 'server1.crt',
'auth' => 'reflector',
'authproc' => [
100 => ['class' => 'core:AttributeMap', 'name2oid'],
],
];
- Add SAMLtest.id to trusted SPs
- Download SP metadata from https://samltest.id/download/
- Use the SSP XML to PHP convertor
- Paste the result into metadata/saml20-sp-remote.php
- Add this IdP to SAMLtest.id
- Download IdP metadata from SSP admin
- Go to https://samltest.id/upload.php
- Upload the IdP metadata
- Install go (follow https://go.dev/doc/install to have the newest version, don't use the version from your distro!)
- add this to your profile (~/.profile)
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
- install nuclei using go (https://docs.nuclei.sh/getting-started/install, "go" tab)
- test that the installation was successful:
nuclei --version
- create a folder called nuclei-templates
- download this file into the folder:
View file |
---|
name | samltest.yaml |
---|
height | 250 |
---|
|
- run nuclei:
nuclei -headless -u https://samltest.id -duc -fr -ms -t nuclei-templates/ -json-export output.json
- there will be a screenshot in the screenshots folder and machine-readable results in output.json (including the whole HTML response)