Categories > Coding > C# >
[dumb question] Bootstrapper C#
Posted
im making a bootstrapper that auto extracts. It works fine when im downloading my executor but it doesnt work when im trying to update. I cant seem to delete the folder when i try to update..
woat
Replied
I recommend watching this tutorial:
https://www.youtube.com/watch?v=AutptMYrkNc&t=213s
ok hope it helped
Cancel
Post
Exploits I Use: Dark-Out Cat-Ware Synapse X Fluxus Delta Script-Ware
Also Download DarkOut :Gun:
DarkOut Download
Replied
@68085that one isnt that good just use basic C#
Cancel
Post
Added
add me on discord
draxer#0001
i'll help you out
Cancel
Post
yes :nod:
Replied
Let me explain:
Web client, host the download on a pastebin or a github repo, make it so everytime the bootstrapper is clicked it downloads the file like a discord attachment from said raw page like pastebin, you could also make it download on a certain directory and if it's a .zip file or something extract it.
Wrote this on my phone so I couldn't give example of code
Cancel
Post
https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif
Replied
Use WebClient to download an .zip file from your GitHub Repo with your exploit files in it and extract them.
Cancel
Post
Who's Deez?
Replied
Here's basically how you make a bootstrapper.
- Check if your exploit folder exists
- If it exists, delete the folder and all the content inside of it
- Download the ZIP file of your exploit via webclient
- Extract the zip file
- Delete the zip file
- DISPOSE THE WEBCLIENT
Cancel
Post
Replied
Try installing a Nuget package named 'System.IO.Compression.ZipFile', you can use the Method ExtractToDirectory.
Very Easy.
Use System.IO's File.Delete (takes one parametor for the path for the file or the that will be deleted.)
you can get the current directory for the folder that the executable of your app is in via System.IO's Directory.GetCurrentDirectory, then just extract the file to the current dir.
Cancel
Post
Added
@63568 bruh imagine disposing wc thats kinda gay dude
Cancel
Post
Replied
@MINISHXP Disposing is not gay, and also, you can use Environment.CurrentDirectory to get your current directory.
Cancel
Post
Replied
@63568uhhhhhh directory.getcurrentdirectory works too
Cancel
Post
Added
this thing has got to be a joke, for deleting a folder, just do
System.IO.Directory.Delete($@"{Environment.CurrentDirectory}\YourFolder", true); /* Used true because it will delete any remaining items in that folder */);
Cancel
Post
Replied
Directory.Delete("./scripts/", true) /* Recursive, Remove directories, sub directories, and files in path. */
/* You don't need to get your exe path lol. */
Cancel
Post
Added
@TERIHAX You don't need Environment.CurrentDirectory for locating the files or folders inside EXE range. Please learn C#
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post