Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
lolicode/C# OpenBullet2 - random UA selector
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