Skip to content

Instantly share code, notes, and snippets.

View 0snug0's full-sized avatar

Eric Lugo 0snug0

  • San Francisco, CA
View GitHub Profile
"Date","Severity","Open"
"2025-03-01","Critical",250
"2025-03-01","High",9571
"2025-04-01","Critical",85
"2025-04-01","High",5778
"2025-05-01","Critical",68
"2025-05-01","High",4169
@0snug0
0snug0 / export_policies_and_rules.py
Last active October 6, 2021 06:46 — forked from tembleking/export_policies_and_rules.py
Exports Policies and Rules in CSV format from Sysdig Secure
#!/usr/bin/env python
import csv
import os
from multiprocessing.pool import ThreadPool
from sdcclient import SdSecureClient
from sdcclient.secure import PolicyClientV2
severity_mapping = ["High"] * 4 + ["Medium"] * 2 + ["Low", "Info"]
⇒ curl -sv https://www.google.com -H 'Accept-Encoding: gzip'
* Rebuilt URL to: https://www.google.com/
* Trying 216.58.195.228...
* TCP_NODELAY set
* Connected to www.google.com (216.58.195.228) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: www.google.com
* Server certificate: Google Internet Authority G2
* Server certificate: GeoTrust Global CA
> GET / HTTP/1.1
@0snug0
0snug0 / gist:c63166390c4dfb2907f9c44d2d083abe
Created August 15, 2017 15:25
dig +trace dailystormer.com
⇒ dig +trace dailystormer.com
; <<>> DiG 9.8.3-P1 <<>> +trace dailystormer.com
;; global options: +cmd
. 518400 IN NS a.root-servers.net.
. 518400 IN NS b.root-servers.net.
. 518400 IN NS c.root-servers.net.
. 518400 IN NS d.root-servers.net.
. 518400 IN NS e.root-servers.net.
. 518400 IN NS f.root-servers.net.