Skip to content

Commit eaa112a

Browse files
Update exploithawk.c
1 parent c18739f commit eaa112a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

exploithawk.c

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,15 @@ void *load_csv_thread(void *arg) {
118118
if (col >= 3 && matches_search(cols[2], search_term)) {
119119
trim_newline(cols[1]);
120120
trim_newline(cols[2]);
121-
if (col >= 3 && matches_search(cols[2], search_term)) {
122-
char fullpath[MAX_PATH] = "";
123-
// Find first existing ExploitDB root
124-
for (int r = 0; r < sizeof(exploitDBRoots)/sizeof(exploitDBRoots[0]); r++) {
125-
snprintf(fullpath, sizeof(fullpath), "%s/%s", exploitDBRoots[r], cols[1]);
126-
if (access(fullpath, F_OK) == 0) { // file exists
127-
add_result("ExploitDB", cols[2], fullpath);
128-
break;
129-
}
130-
}
121+
char fullpath[MAX_PATH] = "";
122+
// Find first existing ExploitDB root
123+
for (int r = 0; r < sizeof(exploitDBRoots)/sizeof(exploitDBRoots[0]); r++) {
124+
snprintf(fullpath, sizeof(fullpath), "%s/%s", exploitDBRoots[r], cols[1]);
125+
if (access(fullpath, F_OK) == 0) { // file exists
126+
add_result("ExploitDB", cols[2], fullpath);
127+
break;
128+
}
131129
}
132-
133130
}
134131
}
135132
fclose(f);

0 commit comments

Comments
 (0)