Arduino giving weird error messages that shouldn't be there

deleted for privacy reasons

USB_PwnHammer_1.0.3.ino.ino (6.55 KB)

Yes, they should be there. Check your braces. You have the function mod defined inside the setup function. That's not legal.

Actually all of those functions are being defined inside setup.

Then where am I supposed to define them? I need the main code to only run once.

So do I just run them all sequentially, without any functions?

Then where am I supposed to define them?

Outside of setup() and loop().

I need the main code to only run once.

Put the "main code" in setup().

Then where am I supposed to define them?

Outside of setup().

I need the main code to only run once.

Where you define a function has NOTHING to do with where you CALL a function.

They need to be defined outside of any function. You can't define a function inside another function.

You need to define the functions outside of any other function. Then if you just want to use the functions once call them from inside setup(). For example

// definitions
void myFuncA() {

}

void myFuncB() {

}

void setup() {
      // call the functions
   myFuncA();
   myFuncB();

}

void loop() {
}

...R

Does any one else have a problem with this?

//This script will add a new admin, disable firewall, //gain remote access, steal ipconfig data, steal the //wifi data, and send it all to your gmail account.

codlink: Does any one else have a problem with this?

//This script will add a new admin, disable firewall, //gain remote access, steal ipconfig data, steal the //wifi data, and send it all to your gmail account.

Thanks for pointing that out - I had not studied the code. If it is as you say it is worrying.

...R