Last active
March 4, 2022 00:49
-
-
Save ShayMe21/a514e4030411015612e687db0e994e9b to your computer and use it in GitHub Desktop.
lolicode/C# OpenBullet2 - random UA selector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string[] UAs = { | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36", | |
"Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.18", | |
"Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Firefox/78.0", | |
"Opera/9.80 (Linux armv7l) Presto/2.12.407 Version/12.51 , D50u-D1-UHD/V1.5.16-UHD (Vizio, D50u-D1, Wireless)", | |
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36", | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0", | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0]" | |
}; | |
Random rnd = new Random(); | |
int randomNumber = rnd.Next(0, UAs.Length); | |
string MyRandomUA = UAs[randomNumber]; | |
BLOCK:PuppeteerOpenBrowser | |
SAFE | |
ENDBLOCK | |
BLOCK:PuppeteerSetUserAgent | |
userAgent = @MyRandomUA | |
ENDBLOCK | |
BLOCK:PuppeteerNavigateTo | |
LABEL:Navigate To Login page | |
url = "https://www.google.com" | |
timeout = 10000 | |
SAFE | |
ENDBLOCK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment