Code Monkey home page Code Monkey logo

keyhacks's People

Contributors

003random avatar abss0x7tbh avatar alanhamlett avatar blkout08 avatar chan9390 avatar clonsdale-canva avatar cnotin avatar codingo avatar daffainfo avatar dduarte avatar dee-see avatar edoverflow avatar erdy232 avatar evanstucker-hates-2fa avatar fyoorer avatar gister9000 avatar haones avatar itsignacioportal avatar kevinhock avatar knadt avatar luizboina avatar m-q-t avatar mantissts avatar marcosvalle avatar nightwatchcyber avatar nikitastupin avatar optionsit avatar spenkk avatar streaak avatar yassineaboukir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keyhacks's Issues

Tool to check creds automatically

Hey, it's a great project!
It could be even better if it'd be possible to check creds from the shell.
Writing a tool is easy, but it requires mirroring current README (or only API URLs) into JSON or similar format.

This project includes only API urls and probably won't be used as a seed for any tools.

Example json:

{
   "service": "AWS",
   "description": "Checks AWS keys via IAM API",
   "url": "https://aws/url",
   "expected_status": "200",
   "expected_body?": "{\"key\":\"is_valid\"}"
}

Add Mapbox secret token

Mapbox secret token (super confidential) is something that looked like this: sk.eyJ.... You should add it into your content. Also, there is also a Mapbox public token, looked like this: pk.eyJ... which does not confidential at all, it supposed to be public.

Secret access token started with 'sk.' (secret key)
Public access token started with 'pk.' (public key)
Mapbox

Add Google maps API key

Google maps API key should be restricted to certain projects. I quote

Restrict your API keys to be used by only the IP addresses, referrer URLs, and mobile apps that need them: By restricting the IP addresses, referrer URLs, and mobile apps that can use each key, you can reduce the impact of a compromised API key. You can specify the hosts and apps that can use each key from the GCP Console Credentials page and then create a new API key with the settings you want, or edit the settings of an existing API key.

Source: https://support.google.com/googleapi/answer/6310037?hl=en

You can test the API key is valid and not restricted using:

https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&key=KEY_HERE

If properly restricted, it should return:

"This API project is not authorized to use this API."

Otherwise, it will return proper JSON data with directions and geo coordinates.

How to use the nuxtKey?

Hello, I discovered the leakage of nuxtKey and nuxtKeySecret in the wild. I read the official document and found no way to use it. Do you have a way to use it?

Add Azure SAS token

Browserstack Access check

we can validate the access using this endpoint
curl -u "USERNAME:ACCESS_KEY" https://api.browserstack.com/automate/plan.json

Mapbox api details

Hi there,
can you please provide more details regarding Mapbox access token exploit.

Wakatime

https://wakatime.com/api/v1/users/current/projects/?api_key=KEY

(get)

Boomerang API

Do you have any idea about interaction with boomerang api. please share resources for it.

Add Github SSH Keys

SSH private keys can be tested against github.com to see if they are registered against an existing user account. If the key exists the username corresponding to the key will be provided:

$ ssh -i <path to SSH private key> -T [email protected]
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.

add apigee client id and secret

Hello,
I have suggestion add apigee client id and secret. With client id and secret, we can gain full access to apigee service of that company who leak id and secret. No regex for hunting client id and secret but there is

curl -I -H 'Content-Type: application/x-www-form-urlencoded' -X POST 'https://company.apigee.net/oauth/accesstoken' -d 'grant_type=client_credentials&client_id=xxx&client_secret=yyy'

Client id always longer than client secret.

{
    "token": "xxx",
    "access_token": "xxx",
    "issued_at": "00000",
    "expires_in": "00000"
}

Access token will look like jwt token, so decode it and find this:

{
  "access_token": "agGEHDkB7WRDYNbVJ1VVbAjzGTi4",
  "audience": "",
  "api_product_list": [
  ],

Use this key as bearer authorization to explore more deep.

But do not always following /oauth/accesstoken endpoint because some company using custom endpoint.
Simple Regex to hunt apigee service of company: .*\.apigee\.net

reference:
https://docs.apigee.com/api-platform/security/oauth/oauth-20-client-credentials-grant-type

Stripe token

Hey Streaak :)
So maybe you are interested in adding the stripe live secret token?
More info can be found here: https://stripe.com/docs/keys
It basically allows you to do anything. So its pretty sensitive.
The format is always:
sk_live_34charshere
where the 34charshere part contains 34 characters from a-z A-Z 0-9. There is also a sk_test key but that is only for testing purposes and isnt worth anything.
003random,

Google Cloud Messaging (GCM)

It looks like GCM is deprecated, but they are still good for another few days ๐Ÿคทโ€โ™‚๏ธ

URL:
https://developers.google.com/cloud-messaging/

Request:
curl -s -X POST --header "Authorization: key=AI..." --header "Content-Type:application/json" 'https://gcm-http.googleapis.com/gcm/send' -d '{"registration_ids":["1"]}'

MailChimp

Format:

[0-9a-z]{32}-[0-9a-z]{2,5}

Test:

curl --request GET --url 'https://<dc>.api.mailchimp.com/3.0/' --user 'anystring:<API_KEY>' --include

Where <dc> is the second part of the key, after the '-'.

Microsoft Azure

Format:

CLIENT_ID: [0-9a-z\-]{36}
CLIENT_SECRET: [0-9A-Za-z\+\=]{40,50}
TENANT_ID: [0-9a-z\-]{36}

Test:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'client_id=<CLIENT_ID>&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_secret=<CLIENT_SECRET>&grant_type=client_credentials' 'https://login.microsoftonline.com/<TENANT_ID>/oauth2/v2.0/token'

Firebase.io

Needs custom token, and API key.

  1. obtain ID token and refresh token from custom token and API key: curl -s -XPOST -H 'content-type: application/json' -d '{"custom_token":":custom_token"}' 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=:api_key'
  2. exchange ID token for auth token: curl -s -XPOST -H 'content-type: application/json' -d '{"idToken":":id_token"}' https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=:api_key'

Square

Detection:

app id / client secret: sq0[a-z]{3}-[0-9A-Za-z-_]{22,43}
auth token: EAAA[a-zA-Z0-9]{60}

Test App id & client secret:

curl "https://squareup.com/oauth2/revoke" -d '{"access_token":"[RANDOM_STRING]","client_id":"[APP_ID]"}'  -H "Content-Type: application/json" -H "Authorization: Client [CLIENT_SECRET]"

Valid:

empty

Not valid:

{
  "message": "Not Authorized",
  "type": "service.not_authorized"
}

Test Auth token:

curl https://connect.squareup.com/v2/locations -H "Authorization: Bearer [AUHT_TOKEN]"

Valid:

{"locations":[{"id":"CBASELqoYPXr7RtT-9BRMlxGpfcgAQ","name":"Coffee \u0026 Toffee SF","address":{"address_line_1":"1455 Market Street","locality":"San Francisco","administrative_district_level_1":"CA","postal_code":"94103","country":"US"},"timezone":"America/Los_Angeles"........

Not valid:

{"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}

Google Cloud messaging endpoint deprecated

They've switched to Firebase.

GCM endpoint FCM endpoint

gcm-http.googleapis.com/gcm/ fcm.googleapis.com/fcm/
gcm-xmpp.googleapis.com fcm-xmpp.googleapis.com
android.clients.google.com/gcm/send fcm.googleapis.com/fcm/send
android.apis.google.com/*/send fcm.googleapis.com/fcm/send
android.googleapis.com/gcm/send fcm.googleapis.com/fcm/send

Deprecated endpoints on the left. New Firebase ones are on the right.

Google

Hey
If you can provide a POC about
google_client_key: '{}',
google_client_id: '{}',
Would be appreciated <3

Help needed.Google access token

I found google client id and client secret hardcoded in android app in a BB program.How can confirm/show that the client secret and id are working?

Add HubSpot Key

If you ever found hubspot key, try sending request to following

Get all owner:

https://api.hubapi.com/owners/v2/owners?hapikey={keyhere}

Get all contact details:

https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={keyhere}

Cleanup and re-arrange information

I've started this work cleaning up the ToC in #44 however after doing so I noticed there's further work to be done to remove duplicates (github personal access tokens, for example), and provide document references on further items. I'm happy to tackle this soon but raising this with help wanted in case somebody else would like to take it on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.