Skip to content

Commit 56a4ac7

Browse files
committed
init
1 parent d4f3848 commit 56a4ac7

File tree

9 files changed

+5722
-0
lines changed

9 files changed

+5722
-0
lines changed

.github/dependabot.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/repo_linter.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: 🐧🧹 Repo Linter 🖳🗑️
2+
concurrency:
3+
group: "${{ github.workflow }}-${{ github.ref }}"
4+
cancel-in-progress: true
5+
on:
6+
#push:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: "0 */6 * * *" #every 06 hrs
10+
push:
11+
branches:
12+
- main
13+
paths:
14+
- '**'
15+
#------------------------------------------------------------------------------------#
16+
jobs:
17+
check:
18+
runs-on: ubuntu-latest
19+
20+
permissions:
21+
contents: write
22+
issues: write
23+
24+
steps:
25+
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
path: "main"
30+
fetch-depth: "1"
31+
filter: "blob:none"
32+
33+
- name: Setup Env
34+
run: |
35+
##presets
36+
set +x ; set +e
37+
#-------------#
38+
##CoreUtils
39+
sudo apt update -y
40+
sudo apt install bc coreutils curl dos2unix fdupes jq moreutils wget -y
41+
SYSTMP="$(dirname $(mktemp -u))" && export SYSTMP="${SYSTMP}"
42+
echo "SYSTMP=${SYSTMP}" >> "${GITHUB_ENV}"
43+
##Setup GHDIRS
44+
mkdir -pv "${GITHUB_WORKSPACE}/main/metadata"
45+
##User-Agent
46+
USER_AGENT="$(curl -qfsSL 'https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
47+
echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}"
48+
continue-on-error: true
49+
50+
- name: Install Addons
51+
run: |
52+
##presets
53+
set +x ; set +e
54+
#-------------#
55+
bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Linux/install_bins_curl.sh")
56+
continue-on-error: true
57+
58+
- name: Dos2Unix Everything
59+
run: |
60+
#Presets
61+
set +x ; set +e
62+
#--------------#
63+
cd "${GITHUB_WORKSPACE}/main"
64+
find . -type f ! -path "./.git/*" -exec dos2unix {} \; 2>/dev/null
65+
continue-on-error: true
66+
67+
- name: ActionLint
68+
run: |
69+
#Presets
70+
set +x ; set +e
71+
#--------------#
72+
cd "${GITHUB_WORKSPACE}/main"
73+
find ".github/workflows" -type f -name "*ml" -exec actionlint {} \;
74+
continue-on-error: true
75+
76+
- name: Shellcheck
77+
run: |
78+
#Presets
79+
set +x ; set +e
80+
#--------------#
81+
cd "${GITHUB_WORKSPACE}/main"
82+
find ".github" -type f -name '*.sh' -exec shellcheck --exclude="SC2261" --severity="error" "{}" \; 2>/dev/null | tee "${GITHUB_WORKSPACE}/main/.github/shellcheck.txt"
83+
continue-on-error: true
84+
85+
- name: Git Pull & Update
86+
run: |
87+
#Presets
88+
set +x ; set +e
89+
#--------------#
90+
cd "${GITHUB_WORKSPACE}/main" && git pull origin main || git pull origin main --ff-only || git merge --no-ff -m "Merge & Sync"
91+
continue-on-error: true
92+
93+
- name: Get DateTime & Purge files (=> 95 MB)
94+
run: |
95+
#Presets
96+
set +x ; set +e
97+
#--------------#
98+
UTC_TIME="$(TZ='UTC' date +'%Y-%m-%d (%I:%M:%S %p)')"
99+
echo "UTC_TIME=$UTC_TIME" >> $GITHUB_ENV
100+
#Purge
101+
find "${GITHUB_WORKSPACE}/main" -path "${GITHUB_WORKSPACE}/main/.git" -prune -o -type f -size +95M -exec rm -rvf "{}" + 2>/dev/null
102+
continue-on-error: true
103+
104+
- uses: stefanzweifel/git-auto-commit-action@v5
105+
with:
106+
repository: ./main
107+
commit_user_name: Azathothas
108+
commit_user_email: [email protected]
109+
#commit_message: "‎‎‏‏‎ ‎"
110+
commit_message: "✅ Linted (Repo) 🛍️"
111+
#push_options: '--force'
112+
continue-on-error: true

README.md

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
---
2+
### Verification:
3+
- [**ASNLookup**](https://rapidapi.com/yaaboukir/api/asn-lookup)
4+
>
5+
```bash
6+
curl -qsk "https://asn-lookup.p.rapidapi.com/api?asn=AS13414" -H "Host: asn-lookup.p.rapidapi.com" -H "X-Rapidapi-Host: asn-lookup.p.rapidapi.com" -H "X-Rapidapi-Key: $api_key" -H "Accept":"application/json"
7+
```
8+
- [**AlienVault**](https://otx.alienvault.com/api)
9+
>
10+
```bash
11+
curl -qsk "https://otx.alienvault.com/api/v1/user/me" -H "X-OTX-API-KEY: $api_key" -H "Accept":"application/json"
12+
```
13+
- [**BeVigil**](https://bevigil.com/osint-api/subdomains)
14+
```bash
15+
curl -qsk "https://osint.bevigil.com/api/example.com/subdomains/" -H "X-Access-Token: $api_key" -H "Accept":"application/json"
16+
```
17+
- [**BigDataCloud**](https://www.bigdatacloud.com/docs/api/asn-short-info-api)
18+
```bash
19+
curl -qsk "https://api-bdc.net/data/asn-info?asn=AS17501&localityLanguage=en&key=$api_key" -H "Accept":"application/json"
20+
```
21+
- [**BinaryEdge**](https://docs.binaryedge.io/api-v2/)
22+
```bash
23+
curl -qsk "https://api.binaryedge.io/v2/user/subscription" -H "X-Key: $api_key" -H "Accept":"application/json"
24+
```
25+
- [**BuiltWith**](https://api.builtwith.com/domain-api)
26+
```bash
27+
curl -qsk "https://api.builtwith.com/usagev2/api.json&KEY=$api_key" -H "Accept":"application/json"
28+
```
29+
- [**Censys**](https://search.censys.io/api)
30+
```bash
31+
curl -qsk "https://search.censys.io/api/v1/account" -u "$apikey:$secret" -H "accept: application/json"
32+
```
33+
- [**CertCentral**](https://dev.digicert.com/en/certcentral-apis/services-api/users/user-info.html)
34+
```bash
35+
curl -qsk "https://www.digicert.com/services/v2/user" -H "Content-Type: application/json" -H "X-DC-DEVKEY: $api_key"
36+
```
37+
- [**CertSpotter**](https://sslmate.com/help/reference/ct_search_api_v1)
38+
```bash
39+
curl -qsk "https://api.certspotter.com/v1/issuances?domain=example.com" -H "Authorization: Bearer $api_key"
40+
```
41+
- [**Chaos**](https://chaos.projectdiscovery.io/#/docs)
42+
```bash
43+
curl -qsk "https://dns.projectdiscovery.io/dns/example.com/subdomains" -H "Authorization: $api_key" -H "Accept: application/json"
44+
```
45+
- [**Cloudflare**](https://developers.cloudflare.com/api/operations/accounts-list-accounts)
46+
```bash
47+
curl -qsk "https://api.cloudflare.com/client/v4/accounts" -H "Authorization: Bearer $api_key" -H "Content-Type: application/json" -H "Accept: application/json"
48+
```
49+
> - Create API Token >> Templates >> **`Read All Resources`**
50+
> - This Should be a **`BEARER Token`** **NOT** API Key
51+
- [**Facebook**](https://developers.facebook.com/docs/facebook-login/guides/access-tokens#apptokens)
52+
```bash
53+
curl -qsk "https://graph.facebook.com/oauth/access_token?client_id=$apikey&client_secret=$secret&redirect_uri=&grant_type=client_credentials"
54+
```
55+
- [**Fofa**](https://en.fofa.info/api/info)
56+
```bash
57+
curl -qsk "https://fofa.info/api/v1/info/my?email=your_email_in_lowercase&key=your_api_key"
58+
```
59+
- [**FullHunt**](https://api-docs.fullhunt.io/#authentication)
60+
```bash
61+
curl -qsk "https://fullhunt.io/api/v1/auth/status" -H "X-API-KEY: $api_key" -H "Accept: application/json"
62+
```
63+
- [**GitHub**](https://docs.github.com/en/rest)
64+
```bash
65+
curl -qsk "https://api.github.com/user" -H "Authorization: Bearer $api_key" -H "Accept: application/vnd.github+json"
66+
```
67+
- [**GitLab**](https://docs.gitlab.com/ee/api/users.html)
68+
```bash
69+
curl -qsk "https://gitlab.com/api/v4/user" -H "PRIVATE-TOKEN: $api_key" -H "Accept: application/json"
70+
```
71+
- [**Google Custom Search API**](https://developers.google.com/custom-search/v1/overview#search_engine_id)
72+
```bash
73+
curl -qsk "https://customsearch.googleapis.com/customsearch/v1?q=test&cx=$search_engine_id&key=$google_api_key" -H "Accept: application/json"
74+
```
75+
> - Create API_KEY --> https://developers.google.com/custom-search/v1/overview#api_key
76+
> - Create a new search engine --> https://programmablesearchengine.google.com/controlpanel/create
77+
> - Enable: `Search the entire web`
78+
- [**Hunter**](https://hunter.io/api-documentation/v2#account)
79+
```bash
80+
curl -qsk "https://api.hunter.io/v2/account?api_key=$api_key" -H "Accept: application/json"
81+
```
82+
- [**IntelX**](https://intelx.io/account?tab=developer)
83+
```bash
84+
curl -qsk "https://2.intelx.io/authenticate/info" -H "x-key:$api_key" -H "Accept: application/json"
85+
```
86+
- [**IPdata**](https://docs.ipdata.co/docs/getting-started)
87+
```bash
88+
curl -qsk "https://api.ipdata.co/?api-key=$api_key" -H "Accept: application/json"
89+
```
90+
- [**IPinfo**](https://ipinfo.io/developers)
91+
```bash
92+
curl -qsk "https://ipinfo.io/me?token=$api_key" -H "Accept: application/json"
93+
```
94+
- [**Ipstack**](https://ipstack.com/documentation)
95+
```bash
96+
curl -qsk "http://api.ipstack.com/check?access_key=$api_access_key"
97+
```
98+
- [**LeakIX**](https://docs.leakix.net/docs/api/authentication/)
99+
```bash
100+
curl -qsk "https://leakix.net/domain/example.com" -H "api-key: $api_key" -H "Accept: application/json"
101+
```
102+
- [**Netlas**](https://netlas-api.readthedocs.io/en/latest/)
103+
```bash
104+
curl -qsk "https://app.netlas.io/api/users/current/" -H "X-Api-Key: $api_key" -H "Accept: application/json"
105+
```
106+
- [**NetworksDB**](https://networksdb.io/api/docs)
107+
```bash
108+
curl -qsk "https://networksdb.io/api/key" -H "X-Api-Key: $api_key" -H "Accept: application/json"
109+
```
110+
- [**PassiveTotal**](https://api.riskiq.net/api/pt_started.html)
111+
```bash
112+
curl -qsk "https://api.riskiq.net/pt/v2/account/quota" -H "Authorization: Basic $api_key" -H "Accept: application/json"
113+
```
114+
- [**Pastebin**](https://psbdmp.cc/api)
115+
```bash
116+
curl -qsk "https://psbdmp.ws/api/v3/dump/KF7hDTp1?key=$api_key"
117+
```
118+
- [**PublicWWW**](https://publicwww.com/profile/api)
119+
```bash
120+
curl -qsk "https://publicwww.com/profile/api_status.xml?key=$api_key"
121+
```
122+
- [**Quake**](https://quake.360.net/quake/#/help?id=5e77423bcb9954d2f8a01656&title=%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)
123+
```bash
124+
curl -qsk "https://quake.360.net/api/v3/user/info" -H "X-QuakeToken: $api_key" -H "Accept: application/json"
125+
```
126+
- [**RoboTex**](https://www.robtex.com/api/)
127+
```bash
128+
curl -qsk "https://freeapi.robtex.com/ipquery/1.1.1.1?key=$api_key" -H "Accept: application/json"
129+
```
130+
> In case timeouts:
131+
> ```bash
132+
> curl -qsk "https://proapi.robtex.com/ipquery/199.19.54.12?key=$api_key" -H "Accept: application/json"
133+
> ```
134+
- [**Shodan**](https://developer.shodan.io/api)
135+
```bash
136+
curl -qsk "https://api.shodan.io/account/profile?key=$api_key" -H "Accept: application/json"
137+
```
138+
> This has no rate limits:
139+
> ```bash
140+
> curl -qsk "https://api.shodan.io/api-info?key=$api_key" -H "Accept: application/json"
141+
> ```
142+
- [**SecurityTrails**](https://docs.securitytrails.com/reference/ping)
143+
```bash
144+
curl -qsk "https://api.securitytrails.com/v1/account/usage" -H "APIKEY:$api_key"
145+
```
146+
- [**Spamhaus**](https://docs.spamhaus.com/extended-data/docs/source/02-availability/current/110-API.html)
147+
```bash
148+
curl -qsk "https://api.spamhaus.org/api/v1/login" -d '{"username":"$email_in_lowercase", "password":"$password", "realm":"intel"}' -H "Content-Type: application/json" -H "Accept: application/json"
149+
```
150+
- [**URLScan**](https://urlscan.io/docs/api/)
151+
```bash
152+
curl -qsk "https://urlscan.io/user/quotas/" -H "API-Key: $api_key" -H "Content-Type: application/json"
153+
```
154+
- [**Twitter**](https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens)
155+
```bash
156+
curl -u "$apikey:$secret" "https://api.twitter.com/oauth2/token" --data "grant_type=client_credentials" -H "Accept: application/json"
157+
```
158+
- [**VirusTotal**](https://developers.virustotal.com/reference/overview)
159+
```bash
160+
curl -qsk "https://www.virustotal.com/api/v3/ip_addresses/1.1.1.1" -H "x-apikey: $api_key" -H "Content-Type: application/json"
161+
```
162+
- [**WhoisXML**](https://whois.whoisxmlapi.com/documentation/balance-information)
163+
```bash
164+
curl -qsk "https://user.whoisxmlapi.com/user-service/account-balance?apiKey=$api_key" -H "Accept: application/json"
165+
```
166+
- [**WPScan**](https://wpscan.com/docs/api/v3)
167+
```bash
168+
curl -qsk "https://wpscan.com/api/v3/status" -H "Authorization: Token token=$WPSCAN_API_TOKEN" -H "Accept: application/json"
169+
```
170+
> You can use **`jq`** to directly convert the unix time
171+
> ```bash
172+
> curl -qsk "https://wpscan.com/api/v3/status" -H "Authorization: Token token=$WPSCAN_API_TOKEN" -H "Accept: application/json" | jq '. + { requests_reset: ( .requests_reset + (5*3600+45*60) ) | strftime("%Y-%m-%d||Time:%H:%M:%S") }'
173+
> ```
174+
- [**Yandex**](https://yandex.com/dev/xml/doc/dg/concepts/get-request.html)
175+
```bash
176+
curl -qsk "https://yandex.com/search/xml?user=$email_lowercase&key=$apikey&query=example"
177+
```
178+
> You might need to change permitted IP addresses : https://xml.yandex.com/settings/
179+
- [**ZoomEye**](https://www.zoomeye.org/doc#authenticate)
180+
```bash
181+
curl -qsk "https://api.zoomeye.org/user/login" -H "Content-Type: application/json" -d '{"username":"$email_lowercased","password":"$password"}' -H "Accept: application/json"
182+
```
183+
- [**ZoomEyeAPI**](https://www.zoomeye.org/doc#authenticate)
184+
```bash
185+
curl -qsk "https://api.zoomeye.org/resources-info" -H "API-KEY:$api_key" -H "Accept: application/json"
186+
```

scripts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a

0 commit comments

Comments
 (0)