Questions about some Linux handlers #386
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I'm not working directly on this project, but I hope this can help you with the first question: You need to create a JSON file to add the credentials for the SSH connection, following the example below: {
"Version": "1.0",
"Data": {
"credkey1": {"username": "user1", "password": "pw1base64"}, #Credentials for ip 192.168.20.1
"credkey2": {"username": "user2", "password": "pw2base64"}, #Credentials for ip 192.168.20.2
}
} Then, add the path of the file to the CredentialsFile variable to be loaded. The JSON file will be deserialized into a C# object called Credentials. See more details here: Credentials.cs. "CommandArgs": [
"192.168.20.1 | credkey1 | ls -lah; ls -ltrh; help; pwd; date; time; uptime; uname -a; df -h; cd ~; cd /home/kali; touch cve1234.rb"
] You can learn more about the running process here: Ssh.cs. |
Beta Was this translation helpful? Give feedback.
-
Some wanted to be able to schedule specific activities at very specific times, so we implemented Quartz - a library that enabled cron style task scheduling (Quartz has others as well, but we felt most people would know cron). I'd have to look into the specific issue you're seeing. TBH, we mostly use ghosts for randomized activity, and so very rarely if ever use cron (I'd actually argue to remove it, unless folks have compelling arguments to keep it).
No, sorry, but a curl should run like any other command under bash.
Yes, bash for linux, Cmd for windows. There should be samples here. |
Beta Was this translation helpful? Give feedback.
Some wanted to be able to schedule specific activities at very specific times, so we implemented Quartz - a library that enabled cron style task scheduling (Quartz has others as well, but we felt most people would know cron).
I'd have to look into the specific issue you're seeing. TBH, we mostly use ghosts for randomized activity, and so very rarely if ever use cron (I'd actually argue to remove it, unless folks have compelling arguments t…