WiFi Keystroke Injection Tool designed for an Atmega 32u4/ESP8266 Paired via Serial (Cactus WHID Firmware). Also features Serial, HTTP, and PASV FTP exfiltration methods and an integrated Credential Harvester Phishing tool called ESPortal.
Load the esp8266Programmer sketch from the flashing folder.
Select Tools - Board - "LilyPad Arduino USB".
Select the Port your device is connected to under Tools - Port.
Upload the sketch.
When I upload I have error "redifinition of 'void setup()' exit status1' . I only have it declared void setup once
The code
int program_pin = 12;
int enable_pin = 13;
void setup() {
Serial1.begin(115000);
Serial.begin(115000);
pinMode(enable_pin, OUTPUT);
pinMode(program_pin, OUTPUT);
digitalWrite(program_pin, LOW);
digitalWrite(enable_pin,HIGH);
//while(!Serial);
Serial.println("ESP8266 programmer ready.");
}
void loop()
{
// pass data from ESP to host, if any
while(Serial1.available())
{
Serial.write((uint8_t)Serial1.read());
}
// pass data from host to ESP, if any
if(Serial.available())
{
while(Serial.available())
{
Serial1.write((uint8_t)Serial.read());
}
}
}
Arduino: 1.8.12 (Linux), Board: "LilyPad Arduino USB"
/tmp/untitled1220646783.tmp/sketch_jul18a/esp8266Programmer.ino: In function 'void setup()':
esp8266Programmer:38:6: error: redefinition of 'void setup()'
void setup()
^~~~~
/tmp/untitled1220646783.tmp/sketch_jul18a/sketch_jul18a.ino:1:6: note: 'void setup()' previously defined here
void setup() {
^~~~~
/tmp/untitled1220646783.tmp/sketch_jul18a/esp8266Programmer.ino: In function 'void loop()':
esp8266Programmer:52:6: error: redefinition of 'void loop()'
void loop()
^~~~
/tmp/untitled1220646783.tmp/sketch_jul18a/sketch_jul18a.ino:6:6: note: 'void loop()' previously defined here
void loop() {
^~~~
exit status 1
redefinition of 'void setup()'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hello,
I follow the steps:
When I upload I have error "redifinition of 'void setup()' exit status1' . I only have it declared void setup once
The code
Can anyone help me ?
Thanks and a greeting