Skip to content

Commit

Permalink
add Cache-Control and Pragma headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cujanovic committed May 4, 2018
1 parent 1f25a41 commit 9be95fb
Show file tree
Hide file tree
Showing 20 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom-200/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
header("Content-Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
header("Cache-Control: no-store");
header("Pragma: no-cache");
echo base64_decode($_GET["body"]);
2 changes: 2 additions & 0 deletions custom-201/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
header("Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
header("Cache-Control: no-store");
header("Pragma: no-cache");
echo base64_decode($_GET["body"]);
2 changes: 2 additions & 0 deletions custom-30x/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
header("Location: ".$_GET["url"]);
header("Content-Type:".base64_decode($_GET["content-type"]));
header("Cache-Control: no-cache");
header("Cache-Control: no-store");
header("Pragma: no-cache");
echo base64_decode($_GET["body"]);
4 changes: 4 additions & 0 deletions htaccess/csv-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/csv
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/csv-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/csv
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/csv-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/csv-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/img-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type image/jpeg
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/img-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).i.jpg$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type image/jpeg
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/img-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/img-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).i.jpg$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/json-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).j.json$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type application/json
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/json-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).j.json$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type application/json
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/json-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).j.json$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/json-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).j.json$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/xml-with-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).x.xml$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/xml
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/xml-with-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).x.xml$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/xml
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/xml-without-body-md/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-(.*).x.xml$ $1://169.254.169.254/$2 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
4 changes: 4 additions & 0 deletions htaccess/xml-without-body/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).x.xml$ $1://$2/$3 [L,R=308,NC]
Header always set Content-Type text/html
# Always set Cache-Control to no-cache
Header always set Cache-Control no-cache
# Always set Cache-Control to no-store
Header always set Cache-Control no-store
# Always set Pragma to no-cache
Header always set Pragma no-cache
3 changes: 3 additions & 0 deletions iframe/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#http://ssrf.localdomain.pw/iframe/?proto=http&ip=127.0.0.1&port=80&url=/
header("Content-Type: text/html");
header("Cache-Control: no-cache");
header("Cache-Control: no-store");
header("Pragma: no-cache");

echo '<html><body>';
echo '<iframe src="'.$_GET["proto"].'://google.com:80+&@'.$_GET["ip"].':'.$_GET["port"].$_GET["url"].'#[email protected]:80/" height="180px" width="80%"></iframe>';
echo '<iframe src="'.$_GET["proto"].'://'.$_GET["ip"].':'.$_GET["port"].$_GET["url"].'+&@google.com:80#[email protected]:80/" height="180px" width="80%"></iframe>';
Expand Down

0 comments on commit 9be95fb

Please sign in to comment.