Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #15

Open
wants to merge 1 commit into
base: root
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hacker/windows/ds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public static void exec_cmd(string cmd)
}
public static INatDevice device;
public static bool ipchecked = false;

public static string GetPublicIP() {
if(ipchecked = true)
{
Expand All @@ -216,7 +217,7 @@ public static void DeviceFound(object sender, DeviceEventArgs args)
device = args.Device;
ipchecked = true;

if(GetPublicIP().Length == 0)
if(!GetPublicIP().Contains('.'))
{
sendmsg("[x] Error: can't get public ip", "red");
Console.ReadKey();
Expand All @@ -229,7 +230,6 @@ static void Main(string[] args)
NatUtility.DeviceFound += DeviceFound;
NatUtility.StartDiscovery();


exec_cmd("start cmd.exe /c taskkill /IM java.exe /f");
bool android = false;
bool pro = false;
Expand Down Expand Up @@ -291,7 +291,7 @@ static void Main(string[] args)
sendmsg(" 88 ", "green");
sendmsg(" dP ", "green");
sendmsg(" | DuckSploit V1.0.9 | ", "green");
sendmsg(" build version: _5 ", "yellow");
sendmsg(" build version: _6 ", "yellow");

if (android == true)
{
Expand Down
Binary file modified hacker/windows/ds.exe
Binary file not shown.