Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
canarddu38 authored Jan 8, 2023
1 parent e4387f4 commit 6e18458
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions hacker/windows/ds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void Main(string[] args)
sendmsg(" 88 ", "green");
sendmsg(" dP ", "green");
sendmsg(" | DuckSploit V"+version+" | ", "green");
sendmsg(" build version: "+version_build+" ", "yellow");
sendmsg(" build version: "+version_build+" ", "yellow");
if (pro == true)
{
sendmsg("> Pro version", "red");
Expand Down Expand Up @@ -636,11 +636,20 @@ static void Main(string[] args)
}
catch (Exception e)
{}

string newversion = gethtmlcode("https://github.com/canarddu38/DUCKSPLOIT/raw/root/hacker/windows/version.txt");
string[] tempstr = newversion.Split(' ');
if(tempstr[0] != version)
{
sendmsg("[o] New version found: "+newversion, "red");
sendmsg("=> Current version: "+version+" "+version_build, "red");
}
Console.Write("Type any key to continue...");
Console.ReadKey();
Console.Clear();
sendmsg("[~] Updating DuckSploit...", "yellow");
sendmsg("[~] Downloading...", "yellow");
Download("https://github.com/canarddu38/DUCKSPLOIT/raw/root/hacker/windows/ds.exe", tempdir+"\\newds.exe");
string date = DateTime.Now.ToString("hh_mm_dd_MM_yyyy");
Download("https://github.com/canarddu38/DUCKSPLOIT/raw/root/hacker/windows/ds.exe", tempdir+"\\newds"+date+".exe");
if (pro == true && File.Exists(userprofile+"\\DuckSploit\\pro\\dstoolbox.exe"))
{
sendmsg("> pro updating...", "red");
Expand All @@ -657,12 +666,12 @@ static void Main(string[] args)
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C start powershell.exe -WindowStyle hidden Start-Sleep 3 & del /q /f "+userprofile+"\\DuckSploit\\ds.exe & copy /y \""+tempdir+"\\newds.exe\" \""+userprofile+"\\DuckSploit\\ds.exe\"";
startInfo.Arguments = "/C start powershell.exe -WindowStyle hidden Start-Sleep 3 & del /q /f "+userprofile+"\\DuckSploit\\ds.exe & copy /y \""+tempdir+"\\newds"+date+".exe\" \""+userprofile+"\\DuckSploit\\ds.exe\"";
startInfo.Verb = "runas";
process.StartInfo = startInfo;
process.Start();

Console.WriteLine("start powershell.exe -WindowStyle hidden Start-Sleep 3 & del /q /f "+userprofile+"\\DuckSploit\\ds.exe & copy /y \""+tempdir+"\\newds.exe\" \""+userprofile+"\\DuckSploit\\ds.exe\"");
Console.WriteLine("start powershell.exe -WindowStyle hidden Start-Sleep 3 & del /q /f "+userprofile+"\\DuckSploit\\ds.exe & copy /y \""+tempdir+"\\newds"+date+".exe\" \""+userprofile+"\\DuckSploit\\ds.exe\"");
sendmsg("[o] Done", "green");
break;
}
Expand Down
Binary file modified hacker/windows/ds.exe
Binary file not shown.

0 comments on commit 6e18458

Please sign in to comment.