Skip to content

Instantly share code, notes, and snippets.

@ShayMe21
Last active March 4, 2022 00:49
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 ShayMe21/a514e4030411015612e687db0e994e9b to your computer and use it in GitHub Desktop.
Save ShayMe21/a514e4030411015612e687db0e994e9b to your computer and use it in GitHub Desktop.
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