Categories > Coding > C# >

[dumb question] Bootstrapper C#

Posts: 11

Threads: 6

Joined: Apr, 2021

Reputation: 0

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..

  • 0

woat

KronoxExe

Kronox.exe

Posts: 14

Threads: 0

Joined: May, 2021

Reputation: 5

Replied

I recommend watching this tutorial:
https://www.youtube.com/watch?v=AutptMYrkNc&t=213s
ok hope it helped

  • 0

Exploits I Use: Dark-Out Cat-Ware Synapse X Fluxus Delta Script-Ware
Also Download DarkOut :Gun:
DarkOut Download

Posts: 17

Threads: 2

Joined: Feb, 2021

Reputation: 0

Replied

@68085that one isnt that good just use basic C# 

  • 0

Added

add me on discord
draxer#0001
i'll help you out

  • 0

yes :nod:

eb_

Formally known as Shade

vip

Posts: 922

Threads: 4

Joined: Jun, 2020

Reputation: 44

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

  • 0

https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif

Bones

deez nuts

Posts: 288

Threads: 6

Joined: Mar, 2021

Reputation: 11

Replied

Use WebClient to download an .zip file from your GitHub Repo with your exploit files in it and extract them.

WebClient Class (System.Net)

  • 0

Who's Deez?

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

Here's basically how you make a bootstrapper.

  1. Check if your exploit folder exists
  2. If it exists, delete the folder and all the content inside of it
  3. Download the ZIP file of your exploit via webclient
  4. Extract the zip file
  5. Delete the zip file
  6. DISPOSE THE WEBCLIENT
  • 0

MINISHXP

[REDACTED]

Posts: 813

Threads: 3

Joined: Jan, 2021

Reputation: 9

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.

  • 0

Added

@63568 bruh imagine disposing wc thats kinda gay dude

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@MINISHXP Disposing is not gay, and also, you can use Environment.CurrentDirectory to get your current directory.

  • 0

MINISHXP

[REDACTED]

Posts: 813

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

@63568uhhhhhh directory.getcurrentdirectory works too

  • 0

TERIHAX

i say im gay as a joke 🙀

Posts: 1796

Threads: 92

Joined: Jul, 2020

Reputation: 30

Replied

@MINISHXP i prefer Env.currentdir

  • 0

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 */);
  • 0

Posts: 675

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

Directory.Delete("./scripts/", true) /* Recursive, Remove directories, sub directories, and files in path. */

/* You don't need to get your exe path lol. */
  • 0

Added

@TERIHAX You don't need Environment.CurrentDirectory for locating the files or folders inside EXE range. Please learn C#

  • 0

Next >>>

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )