Commit Graph

783 Commits (d677065f37d03c4c6056576fa7e75744188ba635)

Author SHA1 Message Date
Víctor Zamanillo ebed4f21e1 Fixed importShadowing (gocritic) 2020-07-22 16:22:01 +02:00
Víctor Zamanillo 5c8aa60d47 Fixed regexpSimplify (gocritic)
Can re-write `<a href="([A-Za-z0-9\/.]+)"><b>` as `<a href="([A-Za-z0-9/.]+)"><b>`
2020-07-22 16:21:40 +02:00
Víctor Zamanillo 9798cd9d3f Fixed importShadowing (gocritic) 2020-07-22 16:17:55 +02:00
Víctor Zamanillo 2f198a3dd8 Fixed hugeParams (gocritic)
We passet huge parameters by pointer
2020-07-22 16:14:26 +02:00
Víctor Zamanillo 377be346fa Fixed sloppyLen (gocritic)
len(matchTokens) <= 0 can be len(matchTokens) == 0
2020-07-22 16:00:46 +02:00
Víctor Zamanillo 75c3682b6e Fixed S1002: should omit comparison to bool constant (gosimple) 2020-07-22 15:53:59 +02:00
Víctor Zamanillo 56a83256e4 Fixed golint style issues 2020-07-22 15:52:41 +02:00
Víctor Zamanillo 47a37a7dde Fixed File is not `gofmt`-ed with `-s` (gofmt)
Fixed running 'gofmt -s -w file'
2020-07-22 15:38:38 +02:00
Víctor Zamanillo 736dff1c64 Fixed misspellings (misspell) 2020-07-22 15:35:01 +02:00
Víctor Zamanillo 14f260e532 Fixed struct of size 624 bytes could be of size 592 bytes (maligned)
Ref: https://medium.com/@sebassegros/golang-dealing-with-maligned-structs-9b77bacf4b97
2020-07-22 15:31:34 +02:00
Víctor Zamanillo 1656c9c3c8 Fixed S1023: redundant `return` statement (gosimple) 2020-07-22 15:27:52 +02:00
Víctor Zamanillo 8a1edce3ba Fixed S1012 (gosimple)
Should use `time.Since` instead of `time.Now().Sub`
2020-07-22 15:27:19 +02:00
Víctor Zamanillo 3eb417db16 Fixed S1031: unnecessary nil check around range (gosimple) 2020-07-22 15:25:02 +02:00
Víctor Zamanillo 7fbbd79dca Fixed assignOp (gocritic) 2020-07-22 15:24:02 +02:00
Víctor Zamanillo 9ab615edca Fixed mnd: Magic numbers (gomnd) 2020-07-22 15:20:41 +02:00
bauthard 8a6ab9eb8a
banner update 2020-07-22 18:39:11 +05:30
Víctor Zamanillo eb9bb0c930 Fixed wrapperFunc
use strings.ReplaceAll method instead off strings.Replace (gocritic)
2020-07-22 15:05:10 +02:00
bauthard 7587797c5a
Merge pull request #276 from thezoomerhacker/thezoomer
Updated spyse.go to API v3
2020-07-22 17:23:26 +05:30
thezoomerhacker 066aaedafd
Updated spyse.go to API v3
Changed request to API v3 
V2 is currently throwing a 404 error
2020-07-21 11:20:42 -04:00
bauthard 572fc83350
Merge pull request #275 from vzamanillo/github-item-404
Fixed incorrect handling of 404 status code on github source
2020-07-21 17:39:39 +05:30
Víctor Zamanillo 2a73ce2811 Fixed incorrect handling of 404 status code
Fixes a bug introduced on #274
2020-07-21 13:55:15 +02:00
bauthard 69411756a5
Merge pull request #274 from vzamanillo/improved-http-error-handling
Improved HTTP error handling
2020-07-21 16:47:30 +05:30
Víctor Zamanillo c0cec04a04 Fixed incorrect handling on item 404 status code
We can not use continue because skip the current item text match results
2020-07-21 13:05:55 +02:00
Víctor Zamanillo 41b0f931b5 Fixed missing github source from default sources 2020-07-20 22:18:57 +02:00
Víctor Zamanillo 7841621a06 Removed digicert source
digicert source is not working anymore, "CT log search has been discontinued"
2020-07-20 21:45:01 +02:00
Víctor Zamanillo 9d6d79f19d Report request item error only if status code is 404 2020-07-20 21:41:52 +02:00
Víctor Zamanillo af4509c9b9 Unescaped URL on unexpected status code agent message 2020-07-20 21:37:23 +02:00
Víctor Zamanillo 937ad6a441 Fixed isNotFound check 2020-07-20 21:34:01 +02:00
Víctor Zamanillo 8e2ce0aa6e Continue on 404 error while reading item code before matching subdomains 2020-07-20 20:59:35 +02:00
Víctor Zamanillo 3af1d48d5a New method to discard a HTTP response on unexpected status 2020-07-20 20:49:50 +02:00
Víctor Zamanillo a4576376d7 Return the response on unexpected status code
Sometimes we may have to check the status code to act accordingly, ej: GitHub source needs to check for 403 to know when a request rate limit exceeded occurs, invalidate the current token and get the next in the pool.
2020-07-20 19:38:52 +02:00
Víctor Zamanillo 773b61d1a1 Handle not OK status code as Unexpected status 2020-07-20 19:33:20 +02:00
Víctor Zamanillo cdb6104a08 Wrap HTTP request to handle not OK status codes 2020-07-20 17:24:37 +02:00
bauthard b0e9587f6c
Merge pull request #273 from vzamanillo/list-sources-needs-key
Identify and print which sources need an API key / token when ls is used
2020-07-20 17:34:01 +05:30
Víctor Zamanillo 15f0cd8452 Do not print keys due to private data leakage 2020-07-20 13:26:35 +02:00
Víctor Zamanillo 1bbd4d34dd Identify and print which sources need an API key / token when ls is used 2020-07-20 12:44:08 +02:00
bauthard cfd9696c91
Merge pull request #271 from vzamanillo/dnsdb#264
Do not run dnsdb source if keys are not specified
2020-07-19 22:37:14 +05:30
bauthard d8aa749241
Merge pull request #272 from vzamanillo/readme-list-sources
Added "ls" option to "Usage"
2020-07-19 22:33:32 +05:30
Víctor Zamanillo c5967c41fe Added "ls" option to "Usage" 2020-07-19 18:03:14 +02:00
Víctor Zamanillo d342973eba Do not run dnsdb source if keys are not specified 2020-07-19 17:57:00 +02:00
bauthard c3266cbd81
Merge pull request #270 from vzamanillo/list-sources#256
Added flag to list all available sources
2020-07-19 16:27:56 +05:30
Víctor Zamanillo fe4e0abc93 Added flag to list all available sources 2020-07-19 12:45:58 +02:00
bauthard 0f53e1ae54
version update 2020-07-18 16:50:30 +05:30
bauthard 3804133c36
readme update 2020-07-18 16:48:26 +05:30
bauthard e30c5670c3
Merge pull request #267 from vzamanillo/github-rate-limit
Handle GitHub Search API rate limit exceeded
2020-07-18 16:45:13 +05:30
bauthard c0b4d45746
Merge pull request #269 from vzamanillo/commoncrawl-urlencoded-fix
Fixed encoded characters in the subdomain results for Common Crawl source
2020-07-18 16:42:16 +05:30
Víctor Zamanillo 798815c519 Fixed code format 2020-07-17 22:59:27 +02:00
Víctor Zamanillo 0cfb970e60 Round-robin token managment for distributed GitHub token use 2020-07-17 22:55:32 +02:00
Víctor Zamanillo 6b6e4b865b Oh, missed QueryUnescape 2020-07-16 11:09:05 +02:00
Víctor Zamanillo d8ef589e20 Fixed encoded characters in the subdomain results
We use QueryUnescape to unescape the body before finding the subdomains avoding the presence of unwanted characters in the results instead TrimPrefix because is case sensitive, we can receive %2f or %2F.
2020-07-16 11:03:33 +02:00