· 6 years ago · Sep 15, 2019, 07:42 PM
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Net.Http;
5using System.Text;
6using System.Threading;
7using System.Threading.Tasks;
8using OpenQA.Selenium;
9using OpenQA.Selenium.Firefox;
10using OpenQA.Selenium.Support.UI;
11using AutoIt;
12
13
14namespace Traffic_Bot
15{
16 class Program
17 {
18 public static string pre = "[ ] ";
19
20 public static string[] username_txt = System.IO.File.ReadAllLines("username.txt");
21 public static string[] str = username_txt[0].Split(new[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
22 public static string username = str[0];
23 public static string age = str[1];
24
25
26 public static string[] aboutme_txt = System.IO.File.ReadAllLines("aboutme.txt");
27 public static string about_me = aboutme_txt[0];
28
29 public static string captchacoder = "captchacoder.txt";
30 public static string[] captchacoder_api = System.IO.File.ReadAllLines(captchacoder);
31 public static string captchacoder_secretkey = captchacoder_api[0];
32
33
34 public static string sitekey = "6Ld7DSIUAAAAANmycE6Zom0sX59uhiegVy96Fg_H";
35 public static string kiksnapme_url = "https://www.kiksnapme.com/create-a-profile/";
36 public static string taskid = "12345";
37
38
39 public static string GetGtoken(string secretkey, string taskid, string sitekey, string fullpageurl)
40 {
41 MultipartFormDataContent form = new MultipartFormDataContent
42 {
43 {new StringContent("upload"), "action"},
44 {new StringContent(secretkey), "key"},
45 {new StringContent("3"), "captchatype"},
46 {new StringContent(sitekey), "sitekey"},
47 {new StringContent(fullpageurl), "pageurl"},
48 {new StringContent(taskid), "gen_task_id"}
49 };
50
51 HttpClient client = new HttpClient();
52 HttpResponseMessage response = client.PostAsync("http://api.captchacoder.com/imagepost.ashx", form).Result;
53 var result = response.Content.ReadAsStringAsync().Result;
54 return result;
55 }
56
57 static void kiksnapeme()
58 {
59 try
60 {
61 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
62 //profiles.AddArguments("--headless");
63 FirefoxProfile profile = new FirefoxProfile();
64 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
65 profile.SetPreference("media.peerconnection.enabled", false);
66 profiles.Profile = profile;
67 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
68 FirefoxDriver driver = new FirefoxDriver(profiles);
69 IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
70
71 Console.ForegroundColor = ConsoleColor.White;
72 Console.WriteLine(pre + "Navigating to kiksnapme");
73 driver.Navigate().GoToUrl("https://www.kiksnapme.com/create-a-profile/");
74 Thread.Sleep(500);
75 IWebElement element_app = driver.FindElement(By.XPath("//*[@id=\"category\"]"));
76 element_app.Click();
77 IWebElement element_snapchat = driver.FindElement(By.XPath("/html/body/div[3]/div/form/div[2]/div/select/option[2]"));
78 element_snapchat.Click();
79 IWebElement element_sexting = driver.FindElement(By.XPath("/html/body/div[3]/div/form/div[3]/div/select"));
80 element_sexting.Click();
81 IWebElement element_sexting_yes = driver.FindElement(By.XPath("/html/body/div[3]/div/form/div[3]/div/select/option[1]"));
82 element_sexting_yes.Click();
83 IWebElement element_username = driver.FindElement(By.XPath("/html/body/div[3]/div/form/div[4]/div/input"));
84 element_username.SendKeys(username);
85 IWebElement element_age = driver.FindElement(By.XPath("//*[@id=\"usp_form\"]/div[5]/div/input"));
86 element_age.SendKeys(age);
87 IWebElement element_gender = driver.FindElement(By.XPath("//*[@id=\"usp_form\"]/div[6]/div/select"));
88 element_gender.Click();
89 IWebElement element_gender_female = driver.FindElementByXPath("//*[@id=\"usp_form\"]/div[6]/div/select/option[2]");
90 element_gender_female.Click();
91 IWebElement element_about_me = driver.FindElementByXPath("//*[@id=\"usp_form\"]/div[7]/div/textarea");
92 element_about_me.SendKeys(about_me);
93
94 // Lets figure out how to bypass reCaptcha :/
95 string lol = GetGtoken(captchacoder_secretkey,taskid,sitekey,kiksnapme_url);
96 js.ExecuteScript("document.getElementById(\"g-recaptcha-response\").innerHTML=\"" + lol + "\"" + ";");
97
98 IWebElement element_recaptcha = driver.FindElementByXPath("//*[@id=\"user - submitted - post\"]");
99 element_recaptcha.Click();
100
101
102 }
103 catch
104 {
105 Console.ForegroundColor = ConsoleColor.Red;
106 Console.WriteLine("An Error has occured while navigating to Kiksnapme");
107 System.Console.ReadKey();
108 System.Environment.Exit(1);
109 }
110 }
111
112 static void snapchatUsernames()
113 {
114 try
115 {
116 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
117 //profiles.AddArguments("--headless");
118 FirefoxProfile profile = new FirefoxProfile();
119 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
120 profile.SetPreference("media.peerconnection.enabled", false);
121 profiles.Profile = profile;
122 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
123 FirefoxDriver driver = new FirefoxDriver(profiles);
124
125 Console.ForegroundColor = ConsoleColor.White;
126 Console.WriteLine(pre + "Navigating to Snapchat-Usernames");
127 driver.Navigate().GoToUrl("https://www.snapchat-usernames.com");
128 Thread.Sleep(500);
129 }
130 catch
131 {
132 Console.ForegroundColor = ConsoleColor.Red;
133 Console.WriteLine("An Error has occured while navigating to Snapchat-Username");
134 System.Console.ReadKey();
135 System.Environment.Exit(1);
136 }
137 }
138
139 static void addMeSnaps()
140 {
141 try
142 {
143 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
144 //profiles.AddArguments("--headless");
145 FirefoxProfile profile = new FirefoxProfile();
146 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
147 profile.SetPreference("media.peerconnection.enabled", false);
148 profiles.Profile = profile;
149 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
150 FirefoxDriver driver = new FirefoxDriver(profiles);
151 IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
152
153 Console.ForegroundColor = ConsoleColor.White;
154 Console.WriteLine(pre + "Navigating to addmesnaps");
155 driver.Navigate().GoToUrl("https://www.addmesnaps.com/");
156 Thread.Sleep(500);
157 IWebElement element_username = driver.FindElement(By.XPath("//*[@id=\"snapname\"]"));
158 element_username.SendKeys(username);
159 IWebElement element_age = driver.FindElement(By.XPath("//*[@id=\"age\"]"));
160 element_age.Click();
161 IWebElement element_gender = driver.FindElement(By.XPath("//*[@id=\"gender\"]"));
162 element_gender.Click();
163 IWebElement element_gender_female = driver.FindElement(By.XPath("//*[@id=\"gender\"]/option[2]"));
164 element_gender_female.Click();
165 IWebElement element_submit = driver.FindElement(By.XPath("//*[@id=\"submitBtn\"]"));
166 element_submit.Click();
167 Thread.Sleep(20);
168 IWebElement page = driver.FindElement(By.TagName("body"));
169
170 if (page.Text.Contains("Invalid user"))
171 {
172 Console.ForegroundColor = ConsoleColor.Red;
173 Console.WriteLine("[ ] " + "Snapchat Username is invalid");
174 driver.Quit();
175 }
176
177 else if(page.Text.Contains("Please fill in security check below to make sure you are not robot."))
178 {
179 string lol = GetGtoken(captchacoder_secretkey, taskid, "6LeX9-sSAAAAAJv8yOG7QON0_BA7OeYuOEs7Ei_l", "https://www.addmesnaps.com/recaptcha.php");
180 js.ExecuteScript("document.getElementById(\"g-recaptcha-response\").innerHTML=\"" + lol + "\"" + ";");
181 IWebElement element_submit2 = driver.FindElement(By.XPath("/html/body/div[1]/form/input"));
182 element_submit2.Click();
183 IWebElement page1 = driver.FindElement(By.TagName("body"));
184
185 if (page1.Text.Contains("Invalid user"))
186 {
187 Console.ForegroundColor = ConsoleColor.Red;
188 Console.WriteLine("[ ] " + "Snapchat Username is invalid");
189 driver.Quit();
190 }
191
192 else if (page1.Text.Contains("Online Snapchat Users"))
193 {
194 Console.ForegroundColor = ConsoleColor.Green;
195 Console.WriteLine("[ ] " + "Successfully posted to addmesnaps");
196 driver.Quit();
197 }
198 }
199
200 else if (page.Text.Contains("Online Snapchat Users"))
201 {
202 Console.ForegroundColor = ConsoleColor.Green;
203 Console.WriteLine("[ ] " + "Successfully posted to addmesnaps");
204 driver.Quit();
205 }
206
207 } catch
208 {
209 Console.ForegroundColor = ConsoleColor.Red;
210 Console.WriteLine("An Error has occured while navigating to kiksnapme");
211 System.Console.ReadKey();
212 System.Environment.Exit(1);
213 }
214 }
215
216 static void kikSexting()
217 {
218 try
219 {
220 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
221 //profiles.AddArguments("--headless");
222 FirefoxProfile profile = new FirefoxProfile();
223 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
224 profile.SetPreference("media.peerconnection.enabled", false);
225 profiles.Profile = profile;
226 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
227 FirefoxDriver driver = new FirefoxDriver(profiles);
228
229 Console.ForegroundColor = ConsoleColor.White;
230 Console.WriteLine(pre + "Navigating to kiksexting");
231 driver.Navigate().GoToUrl("https://www.kiksexting.com/login/login");
232 Thread.Sleep(500);
233
234 }
235 catch
236 {
237 Console.ForegroundColor = ConsoleColor.Red;
238 Console.WriteLine("An Error has occured while navigating to kiksexting");
239 System.Console.ReadKey();
240 System.Environment.Exit(1);
241 }
242 }
243
244 static void findSnapchatNames()
245 {
246 try
247 {
248 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
249 //profiles.AddArguments("--headless");
250 FirefoxProfile profile = new FirefoxProfile();
251 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
252 profile.SetPreference("media.peerconnection.enabled", false);
253 profiles.Profile = profile;
254 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
255 FirefoxDriver driver = new FirefoxDriver(profiles);
256 IJavaScriptExecutor js = (IJavaScriptExecutor)driver;
257
258 Console.ForegroundColor = ConsoleColor.White;
259 Console.WriteLine(pre + "Navigating to findchatfriends");
260 driver.Navigate().GoToUrl("https://www.findchatfriends.com/");
261 Thread.Sleep(500);
262 IWebElement element_username = driver.FindElementByCssSelector("#postprofileform-username");
263 element_username.SendKeys(username);
264 IWebElement element_age = driver.FindElementByCssSelector("#postprofileform-age");
265 element_age.Clear();
266 element_age.SendKeys(age);
267 IWebElement element_gender = driver.FindElementByCssSelector("#postprofileform-gender > label:nth-child(2) > input[type=radio]");
268 element_gender.Click();
269 IWebElement element_upload = driver.FindElementByCssSelector("#postprofileform-photo");
270 //element_upload.Click();
271 //C: \Users\Slavi\Downloads\Tinder\datastore\images\female
272
273 //string File = @"C:\Users\Slavi\source\repos\Traffic Bot\Traffic Bot\bin\Debug\Capture.png";
274 //SendKeys(@"C:\Users\Slavi\source\repos\Traffic Bot\Traffic Bot\bin\Debug\Capture.png")
275 //driver.FindElement(By.XPath("//*[@id=\"postprofileform - photo\"]")).SendKeys(@"C:\Users\Slavi\source\repos\Traffic Bot\Traffic Bot\bin\Debug\Capture.png");
276
277
278
279 }
280 catch
281 {
282 Console.ForegroundColor = ConsoleColor.Red;
283 Console.WriteLine("An Error has occured while navigating to findsnapchatnames");
284 System.Console.ReadKey();
285 System.Environment.Exit(1);
286 }
287 }
288
289 static void sextWithMe()
290 {
291 try
292 {
293 OpenQA.Selenium.Firefox.FirefoxOptions profiles = new OpenQA.Selenium.Firefox.FirefoxOptions();
294 //profiles.AddArguments("--headless");
295 FirefoxProfile profile = new FirefoxProfile();
296 profile.SetPreference("dom.ipc.plugins.enabled.libflashplayer.so", false);
297 profile.SetPreference("media.peerconnection.enabled", false);
298 profiles.Profile = profile;
299 profiles.LogLevel = FirefoxDriverLogLevel.Fatal;
300 FirefoxDriver driver = new FirefoxDriver(profiles);
301
302 Console.ForegroundColor = ConsoleColor.White;
303 Console.WriteLine(pre + "Navigating to Sextwithme");
304 driver.Navigate().GoToUrl("https://www.sextwithme.net");
305 Thread.Sleep(500);
306
307 }
308 catch
309 {
310 Console.ForegroundColor = ConsoleColor.Red;
311 Console.WriteLine("An Error has occured while navigating to sextwithme");
312 System.Console.ReadKey();
313 System.Environment.Exit(1);
314 }
315 }
316
317 static void Main(string[] args)
318 {
319 Console.Title = "Snapchat Traffic Bot - Munificent | ";
320 Console.ForegroundColor = ConsoleColor.Green;
321 Console.WriteLine(@"████████╗██████╗ █████╗ ███████╗███████╗██╗ ██████╗ ██████╗ ██████╗ ████████╗
322╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝██║██╔════╝ ██╔══██╗██╔═══██╗╚══██╔══╝
323 ██║ ██████╔╝███████║█████╗ █████╗ ██║██║ ██████╔╝██║ ██║ ██║
324 ██║ ██╔══██╗██╔══██║██╔══╝ ██╔══╝ ██║██║ ██╔══██╗██║ ██║ ██║
325 ██║ ██║ ██║██║ ██║██║ ██║ ██║╚██████╗ ██████╔╝╚██████╔╝ ██║
326 ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
327 ");
328
329 Console.ForegroundColor = ConsoleColor.Blue;
330 Console.WriteLine("\nMade by: Munificent\n");
331
332 Console.ForegroundColor = ConsoleColor.Yellow;
333 Console.WriteLine(" ~ Sites Supported ~");
334 Console.ForegroundColor = ConsoleColor.Red;
335 Console.WriteLine("kiksnapme.com");
336 Console.WriteLine("snapchat-usernames.com");
337 Console.WriteLine("sextingusername.com");
338 Console.WriteLine("kiksexting.com");
339 Console.WriteLine("findsnapchatnames.com");
340 Console.WriteLine("sextwithme.net");
341 Console.WriteLine("\n\n\n");
342
343 // Try Catch KIKSNAPME
344 try
345 {
346 //kiksnapeme(); THIS NEEDS WORKING ON
347 //addMeSnaps(); THIS IS FINISHED
348 findSnapchatNames();
349 } catch
350 {
351
352 }
353
354 Console.ReadLine();
355
356 }
357 }
358}