vapvarun

Set Cookies from url parameters

Mar 2nd, 2020
10,992
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 1.24 KB | None | 0 0
  1. <script src="https://cdn.jsdelivr.net/npm/js-cookie@beta/dist/js.cookie.min.js"></script>
  2.  
  3. <script type="module">
  4.  
  5. // Parse the URL
  6. function getParameterByName(name) {
  7.     name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  8.     var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
  9.         results = regex.exec(location.search);
  10.     return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
  11. }
  12. // Give the URL parameters variable names
  13. var source = getParameterByName('utm_source');
  14. var medium = getParameterByName('utm_medium');
  15. var campaign = getParameterByName('utm_campaign');
  16.  
  17. // Set the cookies
  18. if(Cookies.get('utm_source') == null || Cookies.get('utm_source') == "") {
  19. Cookies.set('utm_source', source);
  20. }
  21. if(Cookies.get('utm_medium') == null || Cookies.get('utm_medium') == "") {
  22. Cookies.set('utm_medium', medium);
  23. }
  24. if(Cookies.get('utm_campaign') == null || Cookies.get('utm_campaign') == "") {
  25. Cookies.set('utm_campaign', campaign);
  26. }
  27.  
  28. // Grab the cookie value and set the form field values
  29. $(document).ready(function(){
  30.     $('input[name=utm_source').val(utm_source);
  31.     $('input[name=utm_medium').val(utm_medium);
  32.     $('input[name=utm_campaign').val(utm_campaign);
  33. });
  34.   Cookies.set('vapvarun', 'bar')
  35. </script>
Advertisement
Comments
  • Mirhoron
    208 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment