publish.php 509 B

1234567891011121314
  1. <?php
  2. // Check out https://ntfy.sh/phil_alerts in your browser after running this.
  3. file_get_contents('https://ntfy.sh/phil_alerts', false, stream_context_create([
  4. 'http' => [
  5. 'method' => 'POST', // PUT also works
  6. 'header' =>
  7. "Content-Type: text/plain\r\n" .
  8. "Title: Unauthorized access detected\r\n" .
  9. "Priority: urgent\r\n" .
  10. "Tags: warning,skull",
  11. 'content' => 'Remote access to phils-laptop detected. Act right away.'
  12. ]
  13. ]));