Skip to content

Commit

Permalink
Add new script execution options
Browse files Browse the repository at this point in the history
  • Loading branch information
felipedaragon committed Nov 3, 2020
1 parent e76339b commit c5c0193
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 18 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Huntpad

Huntpad is a notepad application with features that are particularly useful to penetration testers and bug hunters - a collection of common injection string generators, hash generators, encoders and decoders, HTML and text manipulation functions, and so on, coupled with syntax highlighting for several programming languages. For more details, visit the [Huntpad homepage](http://www.syhunt.com/en/?n=Products.SyhuntHuntpad).
Huntpad is a notepad application with features that are particularly useful to penetration testers and bug hunters - a collection of common injection string generators, hash generators, encoders and decoders, HTML and text manipulation functions, and so on, coupled with syntax highlighting and ability to execute scripts in over 10 programming languages. For more details, visit the [Huntpad homepage](http://www.syhunt.com/en/?n=Products.SyhuntHuntpad).

## Directories

* `/lualib` - the source of the Huntpad Forge Lua library containing many of its toolbar functions written in a variety of languages.
* `/packs` - contents of the uncompressed pack file *Huntpad.scx*
* `/packs` - contents of the uncompressed pack files *Huntpad.scx* and *HuntScript.scx*
* `/src` - the main executable source and built-in resource files
* `/html` - user interface resources (HTML)
* `/lua` - Lua API source
Expand All @@ -14,8 +14,7 @@ Huntpad is a notepad application with features that are particularly useful to p

Compiled binaries for Windows can be downloaded from the links below.

* [1.0.2 32-bit](http://www.syhunt.com/en/index.php?n=Tools.DownloadHuntpad)
* [1.1.0 64-bit](http://www.syhunt.com/en/index.php?n=Tools.DownloadHuntpad) (coming soon)
* [2.0 64-bit](http://www.syhunt.com/en/index.php?n=Tools.DownloadHuntpad)

## Compiling

Expand All @@ -37,6 +36,8 @@ Third-party software used in Huntpad include:
* **Sciter** is the engine currently used by Huntpad for rendering its user interface toolbar.
* Icons are derived from: [Fugue Icons](https://github.com/yusukekamiyamane/fugue-icons) (by [@yusukekamiyamane](https://github.com/yusukekamiyamane/)) and [FatCow Icons](http://www.fatcow.com/free-icons).
* For syntax highlighting, Huntpad currently uses [SynEdit](http://sourceforge.net/projects/synedit/) and [@Krystian-Bigaj](https://github.com/Krystian-Bigaj)'s [SynWeb](https://code.google.com/p/synweb/) with a color scheme adapted from [@korny](https://github.com/korny)'s [CodeRay](https://github.com/rubychan/coderay).
* Various third-party libraries that are included with [Underscript](https://github.com/felipedaragon/underscript).


The license for each component listed above can be found in the `/packs/Resources/docs/` directory of the [Sandcat](https://github.com/felipedaragon/sandcat) repository.

Expand Down
4 changes: 3 additions & 1 deletion packs/HuntScript/quickinject/toolbar_run_extra.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<li .csharp onclick="quickinject:runas(_script.csharp)">C# (.NET)</li>
<li .php onclick="quickinject:runas(_script.php)">PHP</li>
<li .perl onclick="quickinject:runas(_script.perl)">Perl</li>
<li .python onclick="quickinject:runas(_script.python)">Python</li>
<li .ruby onclick="quickinject:runas(_script.ruby)">Ruby</li>
<!--li .tcl onclick="quickinject:runas(_script.tcl)">Tcl</li-->
<!--li .tcl onclick="quickinject:runas(_script.tcl)">Tcl</li-->
<li .typescript onclick="quickinject:runas(_script.typescript)">TypeScript</li>
6 changes: 6 additions & 0 deletions packs/HuntScript/quickinject/toolbar_run_extrajspp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<hr/>
<li .tiscript onclick="quickinject:runas(_script.jspp.tiscript)">TIScript</li>
<hr/>
<li .typescript onclick="quickinject:runas(_script.jspp.tsdeno)">TypeScript (Deno)</li>
<hr/>
<li onclick="quickinject:runas(_script.jspp.script)">JS++ (Onux)</li>
10 changes: 5 additions & 5 deletions packs/HuntScript/quickinject/toolbar_run_extralua.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<li onclick="quickinject:runas(_script.lua.script32)">Lua 5.1 x86</li>
<li .luajit onclick="quickinject:runas(_script.lua.jit)">LuaJIT 2.1 (Lua 5.1 x64)</li>
<li onclick="quickinject:runas(_script.lua.script32)">5.1 x86</li>
<li .luajit onclick="quickinject:runas(_script.lua.jit)">JIT 2.1 (Lua 5.1 x64)</li>
<hr/>
<li onclick="quickinject:runas(_script.lua.v52)">Lua 5.2 x64</li>
<li onclick="quickinject:runas(_script.lua.v53)">Lua 5.3 x64</li>
<li onclick="quickinject:runas(_script.lua.v54)">Lua 5.4 x64</li>
<li onclick="quickinject:runas(_script.lua.v52)">5.2 x64</li>
<li onclick="quickinject:runas(_script.lua.v53)">5.3 x64</li>
<li onclick="quickinject:runas(_script.lua.v54)">5.4 x64</li>

Binary file added packs/Huntpad/images/icon_lang_csharp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packs/Huntpad/images/icon_lang_typescript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packs/Huntpad/quickinject/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ li.secrand { foreground-image: url(Huntpad.scx#images\icon_securerandom.png) }
li.str { foreground-image: url(Huntpad.scx#images\icon_textfile.png) }

li.html { foreground-image: url(Resources.pak#16\icon_html.png) }
li.csharp { foreground-image: url(Huntpad.scx#images\icon_lang_csharp.png) }
li.java { foreground-image: url(Huntpad.scx#images\icon_lang_java.png) }
li.script { foreground-image: url(Huntpad.scx#images\icon_lang_javascript.png) }
li.jscript { foreground-image: url(Huntpad.scx#images\icon_lang_jscript.png) }
Expand All @@ -33,5 +34,6 @@ li.python { foreground-image: url(Huntpad.scx#images\icon_lang_python.png) }
li.ruby { foreground-image: url(Huntpad.scx#images\icon_lang_ruby.png) }
li.tcl { foreground-image: url(Huntpad.scx#images\icon_lang_tcl.png) }
li.tiscript { foreground-image: url(Huntpad.scx#images\icon_lang_tiscript.png) }
li.typescript { foreground-image: url(Huntpad.scx#images\icon_lang_typescript.png) }
li.vbscript { foreground-image: url(Huntpad.scx#images\icon_lang_vbscript.png) }
li.v8 { foreground-image: url(Huntpad.scx#images\icon_v8.png) }
11 changes: 5 additions & 6 deletions packs/Huntpad/quickinject/toolbar_run.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@
<include src="HuntScript.scx#quickinject\toolbar_run_extrajs.html"/>
</menu>
</li>
<li .tiscript>JavaScript++
<li .tiscript>JavaScript Supersets
<menu>
<li .tiscript onclick="quickinject:runtis()">TIScript (This App)</li>
<hr/>
<li .tiscript onclick="quickinject:runas(_script.jspp.tiscript)">TIScript</li>
<include src="HuntScript.scx#quickinject\toolbar_run_extrajspp.html"/>
</menu>
</li>
<li .java onclick="quickinject:runas(_script.java)">Java</li>
<li .lua>Lua
<menu #runasmenulua>
<li onclick="quickinject:runlua()">Lua 5.1 x64 (This App)</li>
<li onclick="quickinject:runlua()">5.1 x64 (This App)</li>
<hr/>
<li onclick="quickinject:runas(_script.lua.v51)">Lua 5.1 x64</li>
<li onclick="quickinject:runas(_script.lua.v51)">5.1 x64</li>
<include src="HuntScript.scx#quickinject\toolbar_run_extralua.html"/>
</menu>
</li>
<hr/>
<include src="HuntScript.scx#quickinject\toolbar_run_extra.html"/>
<include src="HuntScript.scx#quickinject\toolbar_run_extra.html"/>
<li .pascal onclick="quickinject:runas(_script.pascal)">Pascal</li>
<li .vbscript onclick="quickinject:runas(_script.vbscript)">VBScript</li>
</menu>
Binary file modified src/Huntpad.res
Binary file not shown.
8 changes: 6 additions & 2 deletions src/uMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,19 @@ THntpad = class(TForm)
cWinName = ' - Huntpad';
cFilter = 'Text files (*.txt)|*.txt|' +
'HTML files (*.html, *.htm)|*.html;*.htm|' + 'CSS files (*.css)|*.css|' +
'JavaScript files (*.js, *.tis)|*.js;*.tis|' + 'JSON files (*.json)|*.json|' +
'JavaScript files (*.js)|*.js|' +
'JavaScript superset files (*.ts, *.tis, *.jspp)|*.ts;*.tis;*.jspp|' +
'JSON files (*.json)|*.json|' +
'Java files (*.java)|*.java|' +
'PHP files (*.php*)|*.php*|' + 'Ruby files (*.rb)|*.rb|' +
'C files (*.c, *.h)|*.c;*.h|' +
'C++ files (*.cpp, *.cc, *.cxx)|*.cpp;*.cc;*.cxx|' +
'C++ header files (*.hpp, *.hxx, *.hh)|*.hpp;*.hxx;*.hh|' +
'C# files (*.cs)|*.cs|' +
'Pascal files (*.pas, *.dpr)|*.pas;*.dpr|' + 'Perl files (*.pl)|*.pl|' +
'Python files (*.py)|*.py|' + 'SQL files (*.sql)|*.sql|' +
'Python files (*.py)|*.py|' +
'SQL files (*.sql)|*.sql|' +
'TypeScript files (*.ts)|*.ts|' +
'VBScript files (*.vbs)|*.vbs|' + 'XML files (*.xml)|*.xml|' +
'All files (*.*)|*.*';

Expand Down

0 comments on commit c5c0193

Please sign in to comment.