Skip to content

Commit

Permalink
Release 2.6.0
Browse files Browse the repository at this point in the history
Add BlinkLED:   
--"BlinkLED:X"   
--X=# of times to blink the LED 750ms ON 500ms OFF   
--"BlinkLED:3" Blinks the LED 3 times   
--Useful for knowing what stage of a payload you are on(add to the end of payload).
  • Loading branch information
exploitagency committed Oct 19, 2017
1 parent d31fcb4 commit baf0c75
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ Mouse Click:
--Clicks the LEFT, RIGHT, or MIDDLE mouse button
--Case Sensitive

Blink LED:
--"BlinkLED:X"
--X=# of times to blink the LED 750ms ON 500ms OFF
--"BlinkLED:3" Blinks the LED 3 times
--Useful for knowing what stage of a payload you are on(add to the end of payload).

Special Characters/Known Issues:
Currently the only character that has been found not to work is the "less than" symbol, "<".
This bug does NOT apply to Live Payload Mode.
Expand Down
2 changes: 2 additions & 0 deletions payloads/blink.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REM:Blink the LED 3 times, 750ms ON 500ms OFF
BlinkLED:3
33 changes: 33 additions & 0 deletions source/ESP_Code/ESP_Code.ino
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ void runpayload() {
defaultdelay = newdefaultdelay.toInt();
// Serial.println(String()+"default delay set to:"+defaultdelay);
}
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
delay(750);
digitalWrite(2, HIGH);
delay(500);
}
}
else if(cmd == "CustomDelay") {
cmdinput = String(strtok_r(NULL,":",&i));
String customdelay = cmdinput;
Expand Down Expand Up @@ -903,6 +914,17 @@ void setup(void)
defaultdelay = newdefaultdelay.toInt();
// Serial.println(String()+"default delay set to:"+defaultdelay);
}
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
delay(750);
digitalWrite(2, HIGH);
delay(500);
}
}
else if(cmd == "CustomDelay") {
cmdinput = String(strtok_r(NULL,":",&i));
String customdelay = cmdinput;
Expand Down Expand Up @@ -1053,6 +1075,17 @@ void setup(void)
defaultdelay = newdefaultdelay.toInt();
// Serial.println(String()+"default delay set to:"+defaultdelay);
}
else if(cmd == "BlinkLED") {
cmdinput = String(strtok_r(NULL,":",&i));
int blinkcount = cmdinput.toInt();
pinMode(2, OUTPUT);
for (int i=1; i <= blinkcount; i++){
digitalWrite(2, LOW);
delay(750);
digitalWrite(2, HIGH);
delay(500);
}
}
else if(cmd == "CustomDelay") {
cmdinput = String(strtok_r(NULL,":",&i));
String customdelay = cmdinput;
Expand Down
Binary file modified source/ESP_Code/ESP_Code.ino.generic.bin
Binary file not shown.
6 changes: 6 additions & 0 deletions source/ESP_Code/HelpText.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ Mouse Click:<br>
--Clicks the LEFT, RIGHT, or MIDDLE mouse button<br>
--Case Sensitive<br>
<br>
Blink LED:<br>
--"BlinkLED:X"<br>
--X=# of times to blink the LED 750ms ON 500ms OFF<br>
--"BlinkLED:3" Blinks the LED 3 times<br>
--Useful for knowing what stage of a payload you are on(add to the end of payload).<br>
<br>
Special Characters/Known Issues:<br>
Currently the only character that has been found not to work is the "less than" symbol, "&lt;".<br>
This bug does NOT apply to Live Payload Mode.<br>
Expand Down
2 changes: 1 addition & 1 deletion source/ESP_Code/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
String version = "2.5.5";
String version = "2.6.0";
String latestardversion = "2.2";

0 comments on commit baf0c75

Please sign in to comment.