Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8.  
  9. namespace Arten
  10. {
  11.  
  12. internal class Omegle
  13. {
  14. public Omegle()
  15. {
  16. for (int j = 1; j <= 10; j++)
  17. {
  18. string[] array = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
  19.  
  20. Random rnd = new Random();
  21.  
  22. string zufall16 = "";
  23. string webseiteURL = "http://logs.omegle.com/";
  24. for (int i = 1; i <= 16; i++)
  25. {
  26. zufall16 += array[rnd.Next(0, 36)];
  27. }
  28.  
  29. //System.Diagnostics.Process.Start("http://fs5.directupload.net/images/170330/ucx4vecs.png" + zufall16);
  30. webseiteURL += zufall16;
  31.  
  32.  
  33. HttpWebRequest HttpReq = (HttpWebRequest)WebRequest.Create(webseiteURL);
  34.  
  35. HttpWebResponse response;
  36.  
  37. try
  38. {
  39. response = (HttpWebResponse)HttpReq.GetResponse();
  40. // Console.WriteLine(response.StatusCode);
  41. // Console.WriteLine(response.StatusDescription);
  42. }
  43. catch (WebException ex)
  44. {
  45. response = (HttpWebResponse)ex.Response;
  46. // Console.WriteLine(response.StatusCode);
  47. // Console.WriteLine(response.StatusDescription);
  48. }
  49.  
  50. if (response.StatusCode == HttpStatusCode.NotFound)
  51. Console.WriteLine(j +"Seite nicht gefunden.");
  52. if (response.StatusCode == HttpStatusCode.OK)
  53. {
  54. Console.WriteLine(j + "Seite gefunden.");
  55. Console.Write(webseiteURL);
  56. }
  57.  
  58. }
  59. }
  60. }
  61.  
  62. internal class Bilder_Upload
  63. {
  64. public Bilder_Upload()
  65. {
  66. for (int j = 1; j <= 100; j++)
  67. {
  68. string[] array = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",};
  69.  
  70. Random rnd = new Random();
  71.  
  72. string vorneTeil = "";
  73. string webseiteURL = "http://fs5.directupload.net/images/170330/";
  74. for (int i = 1; i <= 8; i++)
  75. {
  76. vorneTeil += array[rnd.Next(0, 36)];
  77. }
  78.  
  79.  
  80.  
  81. //System.Diagnostics.Process.Start("http://www.bilder-upload.eu/show.php?file=f26d9a-1490864447.jpg" + zufall16);
  82. webseiteURL += vorneTeil + ".jpg";
  83.  
  84. HttpWebRequest HttpReq = (HttpWebRequest)WebRequest.Create(webseiteURL);
  85.  
  86. HttpWebResponse response;
  87.  
  88. try
  89. {
  90. response = (HttpWebResponse)HttpReq.GetResponse();
  91. // Console.WriteLine(response.StatusCode);
  92. // Console.WriteLine(response.StatusDescription);
  93. }
  94. catch (WebException ex)
  95. {
  96. response = (HttpWebResponse)ex.Response;
  97. // Console.WriteLine(response.StatusCode);
  98. // Console.WriteLine(response.StatusDescription);
  99. }
  100.  
  101. if (response.StatusCode == HttpStatusCode.NotFound)
  102. Console.WriteLine(j + "Nichts gefunden");
  103.  
  104. if (response.StatusCode == HttpStatusCode.OK)
  105. {
  106. Console.WriteLine(j + "Seite gefunden.");
  107. Console.Write(webseiteURL);
  108. }
  109.  
  110. }
  111. }
  112.  
  113. }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement