New Feature

๐Ÿšจ alerts=on API Feature

Welcome to the most chaotic-yet-secure corner of your API universe โ€” the alerts=on feature.

Think of it as your own digital SOC analyst... who also happens to enjoy surprising you. ๐ŸŽฒ


๐ŸŽฏ What It Does

When you call:


api.php?alerts=on

...the system will magically pull a random alert from the alerts_log database and serve it fresh like a hot threat pancake. ๐Ÿฅž


โš™๏ธ Parameters You Can Use

| Parameter | What It Does | Example |

|---------------|------------------------------------------|-------------------------------------------|

| alerts=on | Enables the alert feed (random alert) | /api.php?alerts=on |

| max= | How many random alerts to return | /api.php?alerts=on&max=5 |

| type= | Filter alerts by type | /api.php?alerts=on&type=network |

| severity= | Filter alerts by severity | /api.php?alerts=on&severity=high |

| format= | Set output format (json, txt, etc.) | /api.php?alerts=on&format=markdown |


๐Ÿ“ฆ Output Formats

You can view alerts in 5 glorious flavors:

  • json (default): Machine-friendly, robot-approved ๐Ÿค–

  • txt: Plain text for CLI or terminal gremlins ๐Ÿ–ฅ๏ธ

  • yaml: For the config wizards and devops druids ๐Ÿง™โ€โ™‚๏ธ

  • markdown: For people who write docs (hi there! ๐Ÿ‘‹)

  • html: If you're fancy and browsing in style ๐Ÿ’…


๐Ÿงช Examples

Get 1 random alert:


GET /api.php?alerts=on

Get 3 random malware alerts in markdown:


GET /api.php?alerts=on&type=malware&max=3&format=markdown

Get a critical severity alert in plain text:


GET /api.php?alerts=on&severity=critical&format=txt


๐Ÿง™ Fun Fact

Alerts are selected randomly every time โ€” so it's like a security-themed slot machine. ๐ŸŽฐ

Except every spin is an incident youโ€™ll have to triage. ๐Ÿ˜…


๐Ÿ›ก๏ธ Bonus Features

  • Combine type and severity filters to narrow down chaos.

  • Use types=list to see all alert types available. (Like ordering from a menu of doom.)


๐Ÿ’ฌ Final Words

With alerts=on, your system is now sending you handcrafted, artisanal alerts on-demand.

Whether youโ€™re testing, training, or just a fan of cyber-chaos, youโ€™re in for a treat. ๐Ÿฟ

Stay safe, stay random!

๐Ÿง ๐Ÿ’ป๐Ÿ”


You'll only receive email when they publish something new.

More from Carlostkd โœ…
All posts