Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop authored Jan 20, 2025
1 parent a154b62 commit ecdec74
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ <h1>
<input type="text" id="searchInput" placeholder="Search within HackTricks..." />
<div class="buttons">
<button type="submit" name="engine" value="hacktricks">Search in HackTricks</button>
<button type="submit" name="engine" value="hacktricks-cloud">Search in HackTricks Cloud</button>
<button type="submit" name="engine" value="bing">Search with Bing</button>
</div>
</form>
Expand All @@ -159,7 +160,13 @@ <h1>
actionUrl = 'https://book.hacktricks.wiki/en/index.html';
input_name = 'search';
input_value = userQuery;
} else {
}
if (engine === 'hacktricks-cloud') {
actionUrl = 'https://cloud.hacktricks.wiki/en/index.html';
input_name = 'search';
input_value = userQuery;
}
else {
actionUrl = 'https://www.bing.com/search';
input_name = 'q';
input_value = filter + ' ' + userQuery;
Expand Down

0 comments on commit ecdec74

Please sign in to comment.