Skip to content

Commit

Permalink
😸
Browse files Browse the repository at this point in the history
so, some new error is showing up. what previously worked is no longer working now. odd.
  • Loading branch information
oldkingcone committed Dec 6, 2023
1 parent 7d0b7f1 commit 679281b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion lib/classes.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . "/lib");

if (!defined("SQL_USE")){
$a = new initialization\initializeC2\initializeC2ConfigFile(default_config->exportConfigConstants()['slop_home'], false);
$homie = default_config->exportConfigConstants()['slop_home'];
$a = new initialization\initializeC2\initializeC2ConfigFile($homie, true);
}
18 changes: 9 additions & 9 deletions lib/database/slopSqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function firstRun(): array
$current_host = $_SERVER['HTTP_HOST'] ?? "localhost";
$prepare_tables = [
"main" => "CREATE TABLE IF NOT EXISTS sloppy_bots_main(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, datetime TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, rhost TEXT UNIQUE NOT NULL, uri TEXT NOT NULL DEFAULT '/slopshell.php', uuid TEXT UNIQUE NOT NULL, os_flavor TEXT NOT NULL, check_in INTEGER DEFAULT 0 NOT NULL, agent TEXT NOT NULL DEFAULT 'sp/1.1', cname TEXT NOT NULL DEFAULT '-', cvalue TEXT NOT NULL DEFAULT '-');",
"droppers" => "CREATE TABLE IF NOT EXISTS sloppy_bots_droppers(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,date_added TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,location_on_disk TEXT UNIQUE NOT NULL, post_var TEXT NOT NULL DEFAULT '-', cookiename TEXT NOT NULL DEFAULT '-', user_agent TEXT NOT NULL DEFAULT 'sp/1.1', dropper_type TEXT NOT NULL DEFAULT '-', uuid TEXT UNIQUE NOT NULL, activator TEXT NOT NULL DEFAULT '-');",
"droppers" => "CREATE TABLE IF NOT EXISTS sloppy_bots_droppers(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,date_added TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,location_on_disk TEXT UNIQUE NOT NULL, post_var TEXT NOT NULL DEFAULT '-', cookiename TEXT NOT NULL DEFAULT '-', user_agent TEXT NOT NULL DEFAULT 'sp/1.1', dropper_type TEXT NOT NULL DEFAULT '-', uuid TEXT UNIQUE NOT NULL, activator TEXT NOT NULL DEFAULT '-', cookie_val TEXT UNIQUE NOT NULL DEFAULT '-');",
"tools" => "CREATE TABLE IF NOT EXISTS sloppy_bots_tools(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,date_added TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,tool_name TEXT UNIQUE NOT NULL,target TEXT NOT NULL,base64_encoded_tool TEXT UNIQUE NOT NULL,keys TEXT UNIQUE,tags TEXT UNIQUE,iv TEXT UNIQUE,cipher TEXT NOT NULL DEFAULT 'NONE',hmac_hash TEXT UNIQUE,lang TEXT NOT NULL,is_encrypted BOOLEAN DEFAULT false);",
"certs" => "CREATE TABLE IF NOT EXISTS sloppy_bots_certs(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,date_added TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,cert_location_on_disk TEXT UNIQUE NOT NULL,base64_encoded_cert TEXT UNIQUE NOT NULL,csr TEXT UNIQUE,pub TEXT UNIQUE,pem TEXT UNIQUE,cipher TEXT DEFAULT '-',is_encrypted BOOLEAN DEFAULT FALSE,priv_key_pass TEXT UNIQUE NOT NULL,rotated BOOLEAN NOT NULL DEFAULT FALSE);",
];
Expand Down Expand Up @@ -87,16 +87,16 @@ private function insertDropper( array $data ): bool

private function insertCertificate(array $data): bool
{
$stmt = $this->prepare("INSERT INTO sloppy_bots_certs(cert_location_on_disk, base64_encoded_cert, csr, pub, pem, cipher, is_encrypted, priv_key_pass) VALUES (:cert_loc, :b64_cert, :csr, :pub, :pem, :cipher, :encrypted, :password)");
$stmt = $this->prepare("INSERT INTO sloppy_bots_certs(cert_location_on_disk, base64_encoded_cert, csr, pub, pem, cipher, is_encrypted, priv_key_pass) VALUES (:cert_location_on_disk, :base64_encoded_cert, :csr, :pub, :pem, :cipher, :is_encrypted, :priv_key_pass)");
return $stmt->execute([
'cert_loc' => $data['cert_location'],
'b64_cert' =>$data['base64_data'],
'cert_location_on_disk' => $data['cert_location'],
'base64_encoded_cert' =>$data['base64_data'],
'csr' => $data['csr'],
'pub' => $data['pub'],
'pem' => $data['pem'],
'cipher' => $data['cipher'],
'encrypted' => $data['is_encrypted'],
'password' => $data['priv_key_pass']
'is_encrypted' => $data['is_encrypted'],
'priv_key_pass' => $data['priv_key_pass']
]) !== false;
}

Expand Down Expand Up @@ -128,13 +128,13 @@ private function insertEncryptedTool(array $data): bool

private function insertTool(array $data): bool
{
$stmt = $this->prepare("INSERT INTO sloppy_bots_tools(tool_name, target, base64_encoded_tool, lang, is_encrypted) VALUES(:tool_name, :target, :b64_encoded, :lang, :encrypted);");
$stmt = $this->prepare("INSERT INTO sloppy_bots_tools(tool_name, target, base64_encoded_tool, lang, is_encrypted) VALUES(:tool_name, :target, :base64_encoded_tool, :lang, :is_encrypted);");
return $stmt->execute([
'tool_name' => $data['tool_name'],
'target' => $data['target'],
'b64_encoded' => $data['base64_data'],
'base64_encoded_tool' => $data['base64_data'],
'lang' => $data['lang'],
'encrypted' => $data['is_encrypted']
'is_encrypted' => $data['is_encrypted']
]);
}
public function insertData(array $data): bool
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 6 additions & 2 deletions sloppy_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
$database->insertData([
"action" => "add_press",
"zip" => $a['TrojanPlugin'],
"activator" => $a['ActivationWord']]
"activator" => $a['ActivationWord'],
]
);
readline("Press the any key to continue.");
break;
Expand All @@ -94,7 +95,10 @@
$database->insertData([
"action" => "add_press",
"zip" => $yay['TrojanPlugin'],
"activator" => $yay['ActivationWord']
"activator" => $yay['ActivationWord'],
'CookieName' => $a['CookieName'],
'CookieVal' => $a['CookieVal'],
'AllowedAgent' => $a['AllowedAgent']
]);
readline("Press the any key to continue.");
break;
Expand Down

0 comments on commit 679281b

Please sign in to comment.