<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ARessl</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ARessl"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/ARessl"/>
	<updated>2026-09-10T13:04:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11734</id>
		<title>Hak5 Packet Squirrel</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11734"/>
		<updated>2023-08-17T08:51:59Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* References */ changed references to new links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Packet Squirrel Connectors.jpg |thumb|right|400px||Packet Squirrel device]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel operates as an Ethernet Man in the Middle and comes  preloaded with three exploit scripts. These three attack modes are Logging Network Traffic, Spoofing DNS and OpenVPN Tunnel. These can also be modified and exchanged with other scripts. It&#039;s stealthy pocket-size enables it to be placed without notice, this can come in handy for penetration testers. The efficient energy usage makes it possible to power it with a battery pack to run over a week.&lt;br /&gt;
The Packet Squirrel can also be combined with the [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2], a command and control server specially for Hak5 devices.&lt;br /&gt;
&lt;br /&gt;
The device brings following characteristics with it:&lt;br /&gt;
# Dimensions: 50 x 40 x 15 mm – small and lightweight with 24 grams&lt;br /&gt;
# Consumption: 0,12A using a Micro-USB-Port&lt;br /&gt;
## Can be run with a battery pack&lt;br /&gt;
# Ports: 2 x RJ45-Ethernet-Port | 1 x USB-Port for a flash drive | Micro-USB-Port for power supply&lt;br /&gt;
# OS: Runs a Linux platform with root access and common network utilities&lt;br /&gt;
# Hardware &lt;br /&gt;
## LED indicating the status of the device &lt;br /&gt;
## Payload Selection Switch to choose the respective payload&lt;br /&gt;
## Scriptable push-button to stop payloads with ease&lt;br /&gt;
&lt;br /&gt;
==== Possible attacks with the Packet Squirrel ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Man-in-the-Middle Attack (MITM)&#039;&#039;&#039; is a popular cyber security attack which is described by an attacker interfering physically, or nowadays often logically, the communication between two or more network targets. Thus, the attacker gains complete control over the data traffic and can read, store, block, manipulate or delete the data traffic. The crux of the attack is that the attacker pretends to be the respective counterpart to the communication partners.&lt;br /&gt;
&lt;br /&gt;
The MITM-Attack can be realized by another attack called &#039;&#039;&#039;Spoofing&#039;&#039;&#039;. Spoofing is when a hacker pretends to be someone known to an individual or network host to access confidential information. Spoofing can technically occur in many ways, among others ARP, DHCP or DNS Spoofing.&lt;br /&gt;
&lt;br /&gt;
== Community ==&lt;br /&gt;
&lt;br /&gt;
Hak5 does not only provide the opportunity to use following payloads fluently and easy using the switch on the side but additionally fosters building a [https://hak5.org/pages/payloads community] regarding all there devices.&lt;br /&gt;
&lt;br /&gt;
The Hak5-webiste provides a way of submitting self-made payloads or to ask questions in a [https://forums.hak5.org/forum/94-packet-squirrel/ forum]. To promote the development of new payloads and to reward creativity, effort and collaboration Hak5 provides the possibility to submit a payload to “Hak5 Payload Awards” to receive a monetary reward in a hight of $ 2.000, -. The winner will be decided yearly by the voting community.&lt;br /&gt;
&lt;br /&gt;
Through [https://github.com/hak5/packetsquirrel-payloads Hak5’s Github-Account] payloads are made available to public and can be downloaded/cloned within the respective repository.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
[[File:Hak5_Squirrel_version.jpg|thumb|right|400px||SSH connect]]&lt;br /&gt;
[[File:Hak5_Squirrel_spoofhost.jpg|thumb|right|400px||spoofhost file]]&lt;br /&gt;
[[File:Hak5_Squirrel_browser.jpg|thumb|right|400px||Spoofed browser warning]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel has an switch to choose between the three exploit payloads for logging the TCP dump, Using VPN Tunnelling and for DNS spoofing, or Arming Mode.&lt;br /&gt;
 &lt;br /&gt;
In &#039;&#039;&#039;Arming Mode&#039;&#039;&#039; (switch in 4th position, nearest to the USB port) you can easily access the device with ssh &amp;lt;code&amp;gt;root@172.16.32.1&amp;lt;/code&amp;gt; with the password &amp;lt;code&amp;gt;hak5squirrel&amp;lt;/code&amp;gt;. Therefore Packet Squirrel acts as DHCP server. If you don&#039;t get an IP address, manually configure an IP from the 172.16.32.0/24 network on your ethernet interface. Arming Mode is indicated by a blue blinking LED an allows to configure the different payloads.&lt;br /&gt;
&lt;br /&gt;
It is also possible to gain ssh access to the device during the attack modes with the IP address of the outgoing Ethernet interface as well.    &lt;br /&gt;
&lt;br /&gt;
==== Basic Cable Setup ====&lt;br /&gt;
&lt;br /&gt;
# Plug the victims Ethernet cable into the &amp;quot;Ethernet In&amp;quot; Port&lt;br /&gt;
# Plug the gateway Ethernet cable  into the &amp;quot;Ethernet Out&amp;quot; Port&lt;br /&gt;
# Power the device by plugging in the power cable&lt;br /&gt;
&lt;br /&gt;
==== Firmware Upgrade ====&lt;br /&gt;
&lt;br /&gt;
Shiped devices are installed with version 1.0, which can be seen in the VERSION file in the Packet Squirrel root folder. The current version 3.2 can be downloaded from the [https://downloads.hak5.org/squirrel Hak5 website].&lt;br /&gt;
&lt;br /&gt;
The file has to be named upgrade-version.bin (where version stands for the version number) and copied to the root directory of an NTFS or EXT4 formatted USB drive.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB drive in the Packet Squirrel and set the select switch to Arming Mode. Then power on the Packet Squirrel. &lt;br /&gt;
&lt;br /&gt;
The upgrade process needs 5 minutes and is indicated by a solid red or blue LED light. When the firmware upgrade is finished, Packet Squirrel reboots and goes in Arming Mode. Shown by a blue blinking LED. &lt;br /&gt;
&lt;br /&gt;
Then you can connect again with SSH and verify the new version, shown in Figure &amp;quot;SSH connect&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Manual upgrade ====&lt;br /&gt;
&lt;br /&gt;
It is also possible to manually upgrade the firmware of the Packet Squirrel by:&lt;br /&gt;
&lt;br /&gt;
# Download the latest firmware from the website linked above and verify the checksum&lt;br /&gt;
# Switch into “Arming Mode” and power on the device&lt;br /&gt;
# Use SCP to transfer the file to Packet Squirrel’s /tmp directory. The appropriate command could be: scp upgrade-x.x.bin root@172.16.32.1:/tmp/&lt;br /&gt;
# Use SSH (command: ssh root@172.16.31.1) to connect to Packet Squirrel’s bash prompt and use the sysupgrade command (sysupgrade -n /tmp/upgrade-x.x.bin) to start the firmware update&lt;br /&gt;
# The process may take 5-10 minutes. Do NOT unplug the device during the process, otherwise the device could become inoperable.&lt;br /&gt;
&lt;br /&gt;
==== Formatting the USB-Stick ====&lt;br /&gt;
&lt;br /&gt;
The Hak5 Packet Squirrel can only operate with a USB disk that is formatted with an NTFS or EXT4 file system. &lt;br /&gt;
&lt;br /&gt;
NTFS (New Technology File System) is a proprietary journaling file system that was developed by Microsoft and offers targeted access protection at file level and greater data security through journaling and is not limited to a file size of 4GB as e.g. FAT. Formatting is performed with following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Find and open your file explorer on Windows&lt;br /&gt;
## Locate your USB-Stick in the left bar&lt;br /&gt;
## Select “Format”&lt;br /&gt;
## Set NTFS as file system using the drop down, tick “Quick Format” and click “Start”&lt;br /&gt;
&lt;br /&gt;
EXT4 is the fourth extended filesystem that was developed for the Linux Kernel and like NTFS a journaling file system. Windows cannot directly format a USB-Stick to the EXT4 format and therefore there is a need for an third-party tool. A USB-Stick is formatted to EXT4 using following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Download and install [https://www.diskgenius.com/download.php DiskGuard]&lt;br /&gt;
## Select your drive from the left bar&lt;br /&gt;
## Select the “Format”-button at the top bar&lt;br /&gt;
## Select the wanted file system “EXT4” from the drop down menu&lt;br /&gt;
## Click “Format”&lt;br /&gt;
&lt;br /&gt;
== Payloads ==&lt;br /&gt;
&lt;br /&gt;
Payloads can be stored on an external USB disk or on the device’s internal memory. On boot the device gives priority to payloads on the USB disk, other payloads existing on the internal memory will be overridden. If no USB disk is available, payloads stored on the internal memory are executed. Payloads on the internal memory are stored in /root/payloads and need to be called switch1, switch2 and switch3, payloads on an USB disk should be stored in /payloads/ and named accordingly.&lt;br /&gt;
&lt;br /&gt;
=== Logging Network Traffic ===&lt;br /&gt;
&lt;br /&gt;
This mode creates TCP/UDP dumps and saves them on the USB drive to analyse later on.&lt;br /&gt;
Just follow these easy steps:&lt;br /&gt;
&lt;br /&gt;
# A USB Stick with an NTFS file system needs to be plugged in the USB-A Port before the Squirrel is Powered up. &lt;br /&gt;
# Flip the first position (which is nearest to the micro USB power in).&lt;br /&gt;
# Connect the Ethernet cable of the victim into the Ethernet port, which is at the same side as the power in USB connector and Connect the Gateway Ethernet cable to the other Port.&lt;br /&gt;
# Plug the power cable in and wait the one minute long start up sequence. The device can be either powered by the victim machine or by an USB power bank.&lt;br /&gt;
# The data traffic will be captured, if the LED starts blinking Yellow. If otherwise the LED circles between red, green and blue, then the USB stick has the wrong file system.&lt;br /&gt;
# Stop the capturing process by pressing the Button. Then the device takes some seconds to write the tcpdum to the USB Storage. As soon as the LED glows red the saving process has ended and you are good to go.&lt;br /&gt;
# You can now analyse the captured pcap file, located in \loot\tcpdump with [[Wireshark]].&lt;br /&gt;
&lt;br /&gt;
After that, the connection trough the Packet Squirrel is shut down. To allow the client to connect to the network again, Packet Squirrel has to be rebooted.&lt;br /&gt;
&lt;br /&gt;
=== DNS Spoofing Mode ===&lt;br /&gt;
&lt;br /&gt;
This mode spoofs the client with DNS entries to redirect traffic to other IP addresses.&lt;br /&gt;
&lt;br /&gt;
# For this mode we have to start in arming mode (switch at fourth position)&lt;br /&gt;
# After gaining access with ssh we change to the DNS spoofing directory with &amp;lt;code&amp;gt;cd /payloads/switch2&amp;lt;/code&amp;gt;.&lt;br /&gt;
# There we can define the Spoofed domain names by editing the file spoofhost with &amp;lt;code&amp;gt;nano spoofhost&amp;lt;/code&amp;gt;.&lt;br /&gt;
# In the file add entrys like &amp;lt;code&amp;gt;address=/myspoofdomain.at/194.232.104.140&amp;lt;/code&amp;gt; as shown in figure &amp;quot;spoofhost file&amp;quot;. The example IP belongs to orf.at&lt;br /&gt;
# Unplug the Packet Squirrel and shift the switch to the second position.&lt;br /&gt;
# Plug it in and wait until the startup sequence is finished and the LED starts blinking yellow.&lt;br /&gt;
&lt;br /&gt;
By browsing to the spoofed domain, the request gets redirected to the given IP. As shown in figure &amp;quot;Spoofed browser warning&amp;quot; browsers show certificate alerts because the domain and certificate do not match. But this mode can still be used to attack other applications which use domains with no validation.&lt;br /&gt;
&lt;br /&gt;
=== OpenVPN Mode ===&lt;br /&gt;
[[File:Packet Squirrel VPN1.jpg |thumb|right|400px||OpenVPN Access Mode]]&lt;br /&gt;
[[File:Packet Squirrel VPN2.jpg |thumb|right|400px||OpenVPN Tunneling Mode]]&lt;br /&gt;
&lt;br /&gt;
The VPN payload implements VPN access mode and VPN tunnelling mode. &lt;br /&gt;
If you want to Setup your own OpenVPN (OVPN) server follow the instructions at the [https://docs.hak5.org/hc/en-us/articles/360010554013-OpenVPN-Payload hak5 webpage]. For the purpose of testing we use use an existing server from [https://www.freeopenvpn.org/en/ freeopenvpn.org]. &lt;br /&gt;
# Start by selecting the desired server and download the the OVPN access certificate.&lt;br /&gt;
# Set the Packet Squirrel in Arming Mode and connect to its shell&lt;br /&gt;
# Copy the certificate with &amp;lt;code&amp;gt;scp user@server:downloadfolder/filename.ovpn /root/payloads/switch3/config.ovpn&amp;lt;/code&amp;gt;&lt;br /&gt;
# Steer to the directory with &amp;lt;code&amp;gt; cd /root/payloads/switch3/&amp;lt;/code&amp;gt;&lt;br /&gt;
# Edit the config.ovpn at line 30 to &amp;lt;code&amp;gt;auth-user-pass credentials.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
# Add an credentials file with  &amp;lt;code&amp;gt; nano credentials.txt&amp;lt;/code&amp;gt; and add the two lines:&lt;br /&gt;
## &amp;lt;code&amp;gt;freeopenvpn&amp;lt;/code&amp;gt; &lt;br /&gt;
## &amp;lt;code&amp;gt;&amp;lt;the displayed password&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
# Before starting the VPN we choose the VPN mode:&lt;br /&gt;
## Open the &amp;lt;code&amp;gt;payload.sh&amp;lt;/code&amp;gt; &lt;br /&gt;
## Set the &amp;lt;code&amp;gt;For_Clients=&amp;lt;/code&amp;gt;  to&lt;br /&gt;
### &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for Access Mode&lt;br /&gt;
### &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; for Tunneling Mode&lt;br /&gt;
# Now set the Switch the the third Position and plug power out and in again&lt;br /&gt;
# You are good to go, if the yellow LED starts to flash after the boot up sequence  &lt;br /&gt;
==== Access Mode ====&lt;br /&gt;
&lt;br /&gt;
Access mode allows the squirrel to access the VPN Network via the Secure Shell&lt;br /&gt;
If the connection was established if the command &amp;lt;code&amp;gt;ifconfig tun0&amp;lt;/code&amp;gt; show the following output when it is issued at the Packet Squirrels Shell.&lt;br /&gt;
 tun0 &lt;br /&gt;
      Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;br /&gt;
      inet addr:192.168.231.245 P-t-P:192.168.231.245 Mask:255.255.255.0&lt;br /&gt;
      UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1&lt;br /&gt;
      RX packets:12 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
      collisions:0 txqueuelen:100&lt;br /&gt;
      RX bytes:1404 (1.3 KiB) TX bytes:608 (608.0 B)&lt;br /&gt;
&lt;br /&gt;
The Access Mode can be used to access an Private network that is used for testing and pen testing purposes like an honeypot virtual machine.&lt;br /&gt;
&lt;br /&gt;
==== Tunneling Mode ====&lt;br /&gt;
&lt;br /&gt;
The Tunnelling mode encapsulates all the traffic and sends it to the VPN Server, from where it is send to the internet. VPN Tunnelling allows users to disguise their IP address you can check your current IP address with [https://www.ipchicken.com ipchicken.com].&lt;br /&gt;
&lt;br /&gt;
You can also install an simple openVPN Server on a linux machine with&lt;br /&gt;
&amp;lt;code&amp;gt;wget https://git.io/vpn -O openvpn.sh &amp;amp;&amp;amp; bash openvpn.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
and press Enter 6 times.&lt;br /&gt;
Then copy the generated client.ovpn file to Packet Squirrel in the /payload/switch3 folder and restart it with the switch on third position.&lt;br /&gt;
=== Meterpreter-via-SSH ===&lt;br /&gt;
[[File:Packet squirrel meterpreter ssh.PNG |thumb|right|400px||Packet Squirrel Payload Meterpreter-via-SSH settings]]&lt;br /&gt;
This payload starts the Packet Squirrel in NAT mode and waits for user input. When the button is pressed, the payload connects to a remote SSH server and creates a local port tunnel. It then launches a meterpreter shell over the tunnel.&lt;br /&gt;
The intent is to hide the meterpreter network traffic behind a legitimate SSH activity.&lt;br /&gt;
You can download this payload from the offical [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/remote-access/Meterpreter-via-SSH hak5 github].&lt;br /&gt;
==== Getting Started ====&lt;br /&gt;
Copy the playload to the Packet Squirrel into the desired switch folder. Now edit the scirpt to configure your server  options:&lt;br /&gt;
* SSH_USER - username on remote SSH server&lt;br /&gt;
* SSH_HOST - ip address of remote SSH Server&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If you changed the default meterpreter port don&#039;t forget to change it on the metasploit side as well.&lt;br /&gt;
* MSF_PORT&lt;br /&gt;
&lt;br /&gt;
===== Generate SSH Key on Squirrel =====&lt;br /&gt;
Now you have to generate an ssh key-pair (just use default location and empty password) on your Packet Squirrel:&lt;br /&gt;
 root@squirrel:~# ssh-keygen&lt;br /&gt;
===== Allow Squirrel on SSH Server =====&lt;br /&gt;
Then you have to copy the contents of /root/.ssh/id_rsa.pub from Packet Squirrel to the SSH Server authorized file:&lt;br /&gt;
&lt;br /&gt;
 user@server:~# mkdir ~/.ssh&lt;br /&gt;
 user@server:~# echo &#039;paste id_rsa.pub contents inside this quote&#039; &amp;gt; ~/.ssh/authorized_keys&lt;br /&gt;
===== Run Metasploit with Resource =====&lt;br /&gt;
 msf@server:~# msfconsole -r server.rc&lt;br /&gt;
&lt;br /&gt;
==== LED Definitions ====&lt;br /&gt;
# Configure NETMODE&lt;br /&gt;
#* Solid Magenta&lt;br /&gt;
# Connect to SSH Server&lt;br /&gt;
#* SUCCESS - Blink Amber 5 Times&lt;br /&gt;
#* FAIL - Blink Red 2 Times&lt;br /&gt;
# Launch meterpreter&lt;br /&gt;
#* SUCESS - Blink Cyan 1 Time&lt;br /&gt;
#* FAIL - Blink Red 1 Time&lt;br /&gt;
&lt;br /&gt;
==== Hardening Recommendations ====&lt;br /&gt;
# Use an accout with limited privileges for SSH acces on the server.&lt;br /&gt;
# User a dedicated account for Packet Squirrel device (audit usage with SSH access logs).&lt;br /&gt;
# Disable PasswordAuthentication in sshd_config on the server.&lt;br /&gt;
&lt;br /&gt;
=== ISpyintel ===&lt;br /&gt;
[[File:Packet squirrel ispyintel.PNG |thumb|right|400px||Packet Squirrel Payload ISpyIntel settings]]&lt;br /&gt;
This payload will automate gathering various recon data on whatever passes between it&#039;s Ethernet ports. You can download this payload from the [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/sniffing/ispyintel official hak5 github].&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This payload requires a usb stick to store loot.&lt;br /&gt;
==== Setup ====&lt;br /&gt;
# Edit the config variables at the top. The main variables are:&lt;br /&gt;
## &amp;lt;code&amp;gt;lootPath=&amp;quot;/mnt/loot/intel&amp;quot;  # Path to loot&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;mode=&amp;quot;TRANSPARENT&amp;quot;          # Network mode we want to use&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;interface=&amp;quot;br-lan&amp;quot;          # Interface to listen on&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy payload.sh into the ~/payloads/switch folder you wish to deploy on.&lt;br /&gt;
# Connect into a target machine with access to the LAN.&lt;br /&gt;
# Set switch to the spot and power up.&lt;br /&gt;
# Leave, get coffee, take a nap while everything is recorded and parsed for future use.&lt;br /&gt;
# When done; hit the button. The LED will rapidly flash white to let you know it is finishing up.&lt;br /&gt;
# When all is done the LED will just go blank. It is now safe to unplug and go about your day.&lt;br /&gt;
&lt;br /&gt;
==== Tasks that are started ====&lt;br /&gt;
* tcpdump - records every packet that was send and received&lt;br /&gt;
* urlsnarf - collects all websites that were visited&lt;br /&gt;
* dsniff - attempts to acquire passwords and what not&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common password fields&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common session id fields&lt;br /&gt;
* log.txt - logs the progress of the payload for troubleshooting&lt;br /&gt;
&lt;br /&gt;
==== Clean Up ====&lt;br /&gt;
Once the button is pressed the payload will automatically parse the TCPDump log file for the following items and store the results in seperate files.&lt;br /&gt;
As this process can take some time the LED will change to a rapid white blink letting you know the button command was recieved and the payload is in the process of shutting down.&lt;br /&gt;
* ipv4found.txt Will contain a unique list of all the ipv4 which the pcap file contains&lt;br /&gt;
* maybeEmails.txt Is a very loose search for possible email addresses that came across the wire in plain text.&lt;br /&gt;
&lt;br /&gt;
=== Creating your own Payloads ===&lt;br /&gt;
&lt;br /&gt;
Ducky Script is the payload language of Hak5 and consists of several simple commands specific to the Packet Squirrel hardware and bash. The basic Ducky Script commands are describe below and include NETMODE, LED, BUTTON and SWITCH.&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel allows us to create our own attack payloads by loading them to the USB stick and naming them Switch1 to Switch3.&lt;br /&gt;
It allows as to create payload in python, bash or PHP. For Python and Bash it is important to use the interpreter directive Python: &amp;lt;code&amp;gt;#!/usr/bin/python&amp;lt;/code&amp;gt;, bash: &amp;lt;code&amp;gt;#!/usr/bin/bash&amp;lt;/code&amp;gt;.&lt;br /&gt;
Bash scripts can access the following pre-installed tools:&lt;br /&gt;
openvpn, autossh, tcpdump, meterpreter-https, cron, nmap, ncat-ssl, ncat, sshfs, tcpdump and wget&lt;br /&gt;
&lt;br /&gt;
The featured Squirrel Script offers the following additional commands:&lt;br /&gt;
&lt;br /&gt;
* NETMODE&lt;br /&gt;
specifies which network mode Packet Sqirrel uses and how traffic is routed&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Description&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE BRIDGE || Creates a bridge between the IN and OUT ehternet interface, with an own IP address for Packet Sqirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE TRANSPARENT || Also creates a bridge between the interfaces but with no own IP address&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE NAT || Packet Squirrel gets an IP address from the target network, the client gets an IP from Packet Squirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE VPN || same as NAT with VPN interface for client tunneling&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE CLONE || Clones the MAC address from the target client and uses it to connect to the LAN&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* LED&lt;br /&gt;
with this command the multi-color LED can be controlled.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the LED, its colors, patterns and states can be found [https://docs.hak5.org/hc/en-us/articles/360010554653-LED here]. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Possible configurations !! Description&lt;br /&gt;
|-&lt;br /&gt;
| LED Colors || red, green, blue, yellow, cyan, magenta, white&lt;br /&gt;
|-&lt;br /&gt;
| LED Patterns || SOLID, SLOW, FAST, SINGLE, DOUBLE, TRIPLE, SUCCESS, 1-10000&lt;br /&gt;
|-&lt;br /&gt;
| LED State || SETUP, FAIL, ATTACK, STAGE, SPECIAL, CLEANUP, FINISH&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* BUTTON&lt;br /&gt;
The BUTTON command pauses the paylpoad until the hardware button is pressed or a specified time has passed.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the Ducky Script’s “Button” command like its return value, possible ways of configuring the wait time, LED color during the pause as well as the option to suppress the LED can be found [https://docs.hak5.org/hc/en-us/articles/360010554673-BUTTON here]. &lt;br /&gt;
&lt;br /&gt;
* SWITCH&lt;br /&gt;
The SWITCH command returns the current position of the hardware payload selection switch. Output is &amp;quot;switch1&amp;quot;, &amp;quot;switch2&amp;quot;, &amp;quot;switch3&amp;quot; or &amp;quot;switch4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Example and Best Practices ====&lt;br /&gt;
[[File:Hak5 C2 start.jpg |thumb|right|400px||C2 server start]]&lt;br /&gt;
[[File:Hak5 c2 dashboard.jpg |thumb|right|400px||C2 Dashboard]]&lt;br /&gt;
[[File:Hak5 c2 sqirrel.jpg |thumb|right|400px||C2 Packet Squirrel]]&lt;br /&gt;
&lt;br /&gt;
As shown below, payloads should begin with comments specifying the name of the payload, a description, the author(s), the target, special requirements, category, netmodes and the LED status.&lt;br /&gt;
&lt;br /&gt;
Configurable options should be placed on the top of the payload file.&lt;br /&gt;
&lt;br /&gt;
The LED should be used regarding common payload states and not with unique pattern combinations. The LED command should precede the NETMODE command indicating a specific state like SETUP or even FAIL if specific conditions are not met. If a payload reaches a FINISH state, the Packet Squirrel is safe to power off.&lt;br /&gt;
&lt;br /&gt;
Here is an example for the usage of Squirrel Script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Title: Caternet&lt;br /&gt;
# Author: Hak5Darren&lt;br /&gt;
# Version: 1.0&lt;br /&gt;
# Description: Forwards all traffic to local webserver hosting cat photos.&lt;br /&gt;
# Props: In loving memory of Hak5Kerby&lt;br /&gt;
&lt;br /&gt;
LED SETUP&lt;br /&gt;
NETMODE NAT&lt;br /&gt;
echo &amp;quot;address=/#/172.16.32.1&amp;quot; &amp;gt; /tmp/dnsmasq.address&lt;br /&gt;
/etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
LED ATTACK&lt;br /&gt;
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53&lt;br /&gt;
python -m SimpleHTTPServer 80&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information go to the [https://docs.hak5.org/hc/en-us/sections/360002180414-Payload-Development hak5.org webpage].&lt;br /&gt;
&lt;br /&gt;
== with Cloud C2 ==&lt;br /&gt;
&lt;br /&gt;
The [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2] is a command and control server for Hak5 devices. Installation and startup is shown in figure &amp;quot;C2 server start&amp;quot;. By browsing to the configured address you can login to the dashboard, shown in figure &amp;quot;C2 dashboard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To connect the Packet Squirrel with your C2 Cloud, click on the plus button in the lower right corner and choose the device. On the dashboard, open the added device and click on Setup, as shown in figure &amp;quot;C2 Packet Sqirrel&amp;quot;. Then copy the downloaded file to the Packet Squirrel&#039;s /etc folder and reboot it. &lt;br /&gt;
In the Overview tab you can also Edit, Reboot, Wipe and Remove your device. &lt;br /&gt;
&lt;br /&gt;
In the Clients tab you can see all clients which were connected to your Packet Squirrel with hostname, MAC and IP address. In the Loot tab, you can open the current loot from your Packet Squirrel directly on your C2 server. And in the Terminal tab you can open a ssh session to your device.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Packet Squirrel + Field Guide]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://docs.hak5.org/packet-squirrel/&lt;br /&gt;
* https://docs.hak5.org/cloud-c2/&lt;br /&gt;
* https://docs.hak5.org/packet-squirrel/payload-development/ducky-script-for-packet-squirrel&lt;br /&gt;
* https://downloads.hak5.org/&lt;br /&gt;
* https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11733</id>
		<title>Hak5 Packet Squirrel</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11733"/>
		<updated>2023-08-17T08:51:19Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* References */ changed references to new links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Packet Squirrel Connectors.jpg |thumb|right|400px||Packet Squirrel device]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel operates as an Ethernet Man in the Middle and comes  preloaded with three exploit scripts. These three attack modes are Logging Network Traffic, Spoofing DNS and OpenVPN Tunnel. These can also be modified and exchanged with other scripts. It&#039;s stealthy pocket-size enables it to be placed without notice, this can come in handy for penetration testers. The efficient energy usage makes it possible to power it with a battery pack to run over a week.&lt;br /&gt;
The Packet Squirrel can also be combined with the [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2], a command and control server specially for Hak5 devices.&lt;br /&gt;
&lt;br /&gt;
The device brings following characteristics with it:&lt;br /&gt;
# Dimensions: 50 x 40 x 15 mm – small and lightweight with 24 grams&lt;br /&gt;
# Consumption: 0,12A using a Micro-USB-Port&lt;br /&gt;
## Can be run with a battery pack&lt;br /&gt;
# Ports: 2 x RJ45-Ethernet-Port | 1 x USB-Port for a flash drive | Micro-USB-Port for power supply&lt;br /&gt;
# OS: Runs a Linux platform with root access and common network utilities&lt;br /&gt;
# Hardware &lt;br /&gt;
## LED indicating the status of the device &lt;br /&gt;
## Payload Selection Switch to choose the respective payload&lt;br /&gt;
## Scriptable push-button to stop payloads with ease&lt;br /&gt;
&lt;br /&gt;
==== Possible attacks with the Packet Squirrel ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Man-in-the-Middle Attack (MITM)&#039;&#039;&#039; is a popular cyber security attack which is described by an attacker interfering physically, or nowadays often logically, the communication between two or more network targets. Thus, the attacker gains complete control over the data traffic and can read, store, block, manipulate or delete the data traffic. The crux of the attack is that the attacker pretends to be the respective counterpart to the communication partners.&lt;br /&gt;
&lt;br /&gt;
The MITM-Attack can be realized by another attack called &#039;&#039;&#039;Spoofing&#039;&#039;&#039;. Spoofing is when a hacker pretends to be someone known to an individual or network host to access confidential information. Spoofing can technically occur in many ways, among others ARP, DHCP or DNS Spoofing.&lt;br /&gt;
&lt;br /&gt;
== Community ==&lt;br /&gt;
&lt;br /&gt;
Hak5 does not only provide the opportunity to use following payloads fluently and easy using the switch on the side but additionally fosters building a [https://hak5.org/pages/payloads community] regarding all there devices.&lt;br /&gt;
&lt;br /&gt;
The Hak5-webiste provides a way of submitting self-made payloads or to ask questions in a [https://forums.hak5.org/forum/94-packet-squirrel/ forum]. To promote the development of new payloads and to reward creativity, effort and collaboration Hak5 provides the possibility to submit a payload to “Hak5 Payload Awards” to receive a monetary reward in a hight of $ 2.000, -. The winner will be decided yearly by the voting community.&lt;br /&gt;
&lt;br /&gt;
Through [https://github.com/hak5/packetsquirrel-payloads Hak5’s Github-Account] payloads are made available to public and can be downloaded/cloned within the respective repository.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
[[File:Hak5_Squirrel_version.jpg|thumb|right|400px||SSH connect]]&lt;br /&gt;
[[File:Hak5_Squirrel_spoofhost.jpg|thumb|right|400px||spoofhost file]]&lt;br /&gt;
[[File:Hak5_Squirrel_browser.jpg|thumb|right|400px||Spoofed browser warning]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel has an switch to choose between the three exploit payloads for logging the TCP dump, Using VPN Tunnelling and for DNS spoofing, or Arming Mode.&lt;br /&gt;
 &lt;br /&gt;
In &#039;&#039;&#039;Arming Mode&#039;&#039;&#039; (switch in 4th position, nearest to the USB port) you can easily access the device with ssh &amp;lt;code&amp;gt;root@172.16.32.1&amp;lt;/code&amp;gt; with the password &amp;lt;code&amp;gt;hak5squirrel&amp;lt;/code&amp;gt;. Therefore Packet Squirrel acts as DHCP server. If you don&#039;t get an IP address, manually configure an IP from the 172.16.32.0/24 network on your ethernet interface. Arming Mode is indicated by a blue blinking LED an allows to configure the different payloads.&lt;br /&gt;
&lt;br /&gt;
It is also possible to gain ssh access to the device during the attack modes with the IP address of the outgoing Ethernet interface as well.    &lt;br /&gt;
&lt;br /&gt;
==== Basic Cable Setup ====&lt;br /&gt;
&lt;br /&gt;
# Plug the victims Ethernet cable into the &amp;quot;Ethernet In&amp;quot; Port&lt;br /&gt;
# Plug the gateway Ethernet cable  into the &amp;quot;Ethernet Out&amp;quot; Port&lt;br /&gt;
# Power the device by plugging in the power cable&lt;br /&gt;
&lt;br /&gt;
==== Firmware Upgrade ====&lt;br /&gt;
&lt;br /&gt;
Shiped devices are installed with version 1.0, which can be seen in the VERSION file in the Packet Squirrel root folder. The current version 3.2 can be downloaded from the [https://downloads.hak5.org/squirrel Hak5 website].&lt;br /&gt;
&lt;br /&gt;
The file has to be named upgrade-version.bin (where version stands for the version number) and copied to the root directory of an NTFS or EXT4 formatted USB drive.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB drive in the Packet Squirrel and set the select switch to Arming Mode. Then power on the Packet Squirrel. &lt;br /&gt;
&lt;br /&gt;
The upgrade process needs 5 minutes and is indicated by a solid red or blue LED light. When the firmware upgrade is finished, Packet Squirrel reboots and goes in Arming Mode. Shown by a blue blinking LED. &lt;br /&gt;
&lt;br /&gt;
Then you can connect again with SSH and verify the new version, shown in Figure &amp;quot;SSH connect&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Manual upgrade ====&lt;br /&gt;
&lt;br /&gt;
It is also possible to manually upgrade the firmware of the Packet Squirrel by:&lt;br /&gt;
&lt;br /&gt;
# Download the latest firmware from the website linked above and verify the checksum&lt;br /&gt;
# Switch into “Arming Mode” and power on the device&lt;br /&gt;
# Use SCP to transfer the file to Packet Squirrel’s /tmp directory. The appropriate command could be: scp upgrade-x.x.bin root@172.16.32.1:/tmp/&lt;br /&gt;
# Use SSH (command: ssh root@172.16.31.1) to connect to Packet Squirrel’s bash prompt and use the sysupgrade command (sysupgrade -n /tmp/upgrade-x.x.bin) to start the firmware update&lt;br /&gt;
# The process may take 5-10 minutes. Do NOT unplug the device during the process, otherwise the device could become inoperable.&lt;br /&gt;
&lt;br /&gt;
==== Formatting the USB-Stick ====&lt;br /&gt;
&lt;br /&gt;
The Hak5 Packet Squirrel can only operate with a USB disk that is formatted with an NTFS or EXT4 file system. &lt;br /&gt;
&lt;br /&gt;
NTFS (New Technology File System) is a proprietary journaling file system that was developed by Microsoft and offers targeted access protection at file level and greater data security through journaling and is not limited to a file size of 4GB as e.g. FAT. Formatting is performed with following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Find and open your file explorer on Windows&lt;br /&gt;
## Locate your USB-Stick in the left bar&lt;br /&gt;
## Select “Format”&lt;br /&gt;
## Set NTFS as file system using the drop down, tick “Quick Format” and click “Start”&lt;br /&gt;
&lt;br /&gt;
EXT4 is the fourth extended filesystem that was developed for the Linux Kernel and like NTFS a journaling file system. Windows cannot directly format a USB-Stick to the EXT4 format and therefore there is a need for an third-party tool. A USB-Stick is formatted to EXT4 using following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Download and install [https://www.diskgenius.com/download.php DiskGuard]&lt;br /&gt;
## Select your drive from the left bar&lt;br /&gt;
## Select the “Format”-button at the top bar&lt;br /&gt;
## Select the wanted file system “EXT4” from the drop down menu&lt;br /&gt;
## Click “Format”&lt;br /&gt;
&lt;br /&gt;
== Payloads ==&lt;br /&gt;
&lt;br /&gt;
Payloads can be stored on an external USB disk or on the device’s internal memory. On boot the device gives priority to payloads on the USB disk, other payloads existing on the internal memory will be overridden. If no USB disk is available, payloads stored on the internal memory are executed. Payloads on the internal memory are stored in /root/payloads and need to be called switch1, switch2 and switch3, payloads on an USB disk should be stored in /payloads/ and named accordingly.&lt;br /&gt;
&lt;br /&gt;
=== Logging Network Traffic ===&lt;br /&gt;
&lt;br /&gt;
This mode creates TCP/UDP dumps and saves them on the USB drive to analyse later on.&lt;br /&gt;
Just follow these easy steps:&lt;br /&gt;
&lt;br /&gt;
# A USB Stick with an NTFS file system needs to be plugged in the USB-A Port before the Squirrel is Powered up. &lt;br /&gt;
# Flip the first position (which is nearest to the micro USB power in).&lt;br /&gt;
# Connect the Ethernet cable of the victim into the Ethernet port, which is at the same side as the power in USB connector and Connect the Gateway Ethernet cable to the other Port.&lt;br /&gt;
# Plug the power cable in and wait the one minute long start up sequence. The device can be either powered by the victim machine or by an USB power bank.&lt;br /&gt;
# The data traffic will be captured, if the LED starts blinking Yellow. If otherwise the LED circles between red, green and blue, then the USB stick has the wrong file system.&lt;br /&gt;
# Stop the capturing process by pressing the Button. Then the device takes some seconds to write the tcpdum to the USB Storage. As soon as the LED glows red the saving process has ended and you are good to go.&lt;br /&gt;
# You can now analyse the captured pcap file, located in \loot\tcpdump with [[Wireshark]].&lt;br /&gt;
&lt;br /&gt;
After that, the connection trough the Packet Squirrel is shut down. To allow the client to connect to the network again, Packet Squirrel has to be rebooted.&lt;br /&gt;
&lt;br /&gt;
=== DNS Spoofing Mode ===&lt;br /&gt;
&lt;br /&gt;
This mode spoofs the client with DNS entries to redirect traffic to other IP addresses.&lt;br /&gt;
&lt;br /&gt;
# For this mode we have to start in arming mode (switch at fourth position)&lt;br /&gt;
# After gaining access with ssh we change to the DNS spoofing directory with &amp;lt;code&amp;gt;cd /payloads/switch2&amp;lt;/code&amp;gt;.&lt;br /&gt;
# There we can define the Spoofed domain names by editing the file spoofhost with &amp;lt;code&amp;gt;nano spoofhost&amp;lt;/code&amp;gt;.&lt;br /&gt;
# In the file add entrys like &amp;lt;code&amp;gt;address=/myspoofdomain.at/194.232.104.140&amp;lt;/code&amp;gt; as shown in figure &amp;quot;spoofhost file&amp;quot;. The example IP belongs to orf.at&lt;br /&gt;
# Unplug the Packet Squirrel and shift the switch to the second position.&lt;br /&gt;
# Plug it in and wait until the startup sequence is finished and the LED starts blinking yellow.&lt;br /&gt;
&lt;br /&gt;
By browsing to the spoofed domain, the request gets redirected to the given IP. As shown in figure &amp;quot;Spoofed browser warning&amp;quot; browsers show certificate alerts because the domain and certificate do not match. But this mode can still be used to attack other applications which use domains with no validation.&lt;br /&gt;
&lt;br /&gt;
=== OpenVPN Mode ===&lt;br /&gt;
[[File:Packet Squirrel VPN1.jpg |thumb|right|400px||OpenVPN Access Mode]]&lt;br /&gt;
[[File:Packet Squirrel VPN2.jpg |thumb|right|400px||OpenVPN Tunneling Mode]]&lt;br /&gt;
&lt;br /&gt;
The VPN payload implements VPN access mode and VPN tunnelling mode. &lt;br /&gt;
If you want to Setup your own OpenVPN (OVPN) server follow the instructions at the [https://docs.hak5.org/hc/en-us/articles/360010554013-OpenVPN-Payload hak5 webpage]. For the purpose of testing we use use an existing server from [https://www.freeopenvpn.org/en/ freeopenvpn.org]. &lt;br /&gt;
# Start by selecting the desired server and download the the OVPN access certificate.&lt;br /&gt;
# Set the Packet Squirrel in Arming Mode and connect to its shell&lt;br /&gt;
# Copy the certificate with &amp;lt;code&amp;gt;scp user@server:downloadfolder/filename.ovpn /root/payloads/switch3/config.ovpn&amp;lt;/code&amp;gt;&lt;br /&gt;
# Steer to the directory with &amp;lt;code&amp;gt; cd /root/payloads/switch3/&amp;lt;/code&amp;gt;&lt;br /&gt;
# Edit the config.ovpn at line 30 to &amp;lt;code&amp;gt;auth-user-pass credentials.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
# Add an credentials file with  &amp;lt;code&amp;gt; nano credentials.txt&amp;lt;/code&amp;gt; and add the two lines:&lt;br /&gt;
## &amp;lt;code&amp;gt;freeopenvpn&amp;lt;/code&amp;gt; &lt;br /&gt;
## &amp;lt;code&amp;gt;&amp;lt;the displayed password&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
# Before starting the VPN we choose the VPN mode:&lt;br /&gt;
## Open the &amp;lt;code&amp;gt;payload.sh&amp;lt;/code&amp;gt; &lt;br /&gt;
## Set the &amp;lt;code&amp;gt;For_Clients=&amp;lt;/code&amp;gt;  to&lt;br /&gt;
### &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for Access Mode&lt;br /&gt;
### &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; for Tunneling Mode&lt;br /&gt;
# Now set the Switch the the third Position and plug power out and in again&lt;br /&gt;
# You are good to go, if the yellow LED starts to flash after the boot up sequence  &lt;br /&gt;
==== Access Mode ====&lt;br /&gt;
&lt;br /&gt;
Access mode allows the squirrel to access the VPN Network via the Secure Shell&lt;br /&gt;
If the connection was established if the command &amp;lt;code&amp;gt;ifconfig tun0&amp;lt;/code&amp;gt; show the following output when it is issued at the Packet Squirrels Shell.&lt;br /&gt;
 tun0 &lt;br /&gt;
      Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;br /&gt;
      inet addr:192.168.231.245 P-t-P:192.168.231.245 Mask:255.255.255.0&lt;br /&gt;
      UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1&lt;br /&gt;
      RX packets:12 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
      collisions:0 txqueuelen:100&lt;br /&gt;
      RX bytes:1404 (1.3 KiB) TX bytes:608 (608.0 B)&lt;br /&gt;
&lt;br /&gt;
The Access Mode can be used to access an Private network that is used for testing and pen testing purposes like an honeypot virtual machine.&lt;br /&gt;
&lt;br /&gt;
==== Tunneling Mode ====&lt;br /&gt;
&lt;br /&gt;
The Tunnelling mode encapsulates all the traffic and sends it to the VPN Server, from where it is send to the internet. VPN Tunnelling allows users to disguise their IP address you can check your current IP address with [https://www.ipchicken.com ipchicken.com].&lt;br /&gt;
&lt;br /&gt;
You can also install an simple openVPN Server on a linux machine with&lt;br /&gt;
&amp;lt;code&amp;gt;wget https://git.io/vpn -O openvpn.sh &amp;amp;&amp;amp; bash openvpn.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
and press Enter 6 times.&lt;br /&gt;
Then copy the generated client.ovpn file to Packet Squirrel in the /payload/switch3 folder and restart it with the switch on third position.&lt;br /&gt;
=== Meterpreter-via-SSH ===&lt;br /&gt;
[[File:Packet squirrel meterpreter ssh.PNG |thumb|right|400px||Packet Squirrel Payload Meterpreter-via-SSH settings]]&lt;br /&gt;
This payload starts the Packet Squirrel in NAT mode and waits for user input. When the button is pressed, the payload connects to a remote SSH server and creates a local port tunnel. It then launches a meterpreter shell over the tunnel.&lt;br /&gt;
The intent is to hide the meterpreter network traffic behind a legitimate SSH activity.&lt;br /&gt;
You can download this payload from the offical [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/remote-access/Meterpreter-via-SSH hak5 github].&lt;br /&gt;
==== Getting Started ====&lt;br /&gt;
Copy the playload to the Packet Squirrel into the desired switch folder. Now edit the scirpt to configure your server  options:&lt;br /&gt;
* SSH_USER - username on remote SSH server&lt;br /&gt;
* SSH_HOST - ip address of remote SSH Server&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If you changed the default meterpreter port don&#039;t forget to change it on the metasploit side as well.&lt;br /&gt;
* MSF_PORT&lt;br /&gt;
&lt;br /&gt;
===== Generate SSH Key on Squirrel =====&lt;br /&gt;
Now you have to generate an ssh key-pair (just use default location and empty password) on your Packet Squirrel:&lt;br /&gt;
 root@squirrel:~# ssh-keygen&lt;br /&gt;
===== Allow Squirrel on SSH Server =====&lt;br /&gt;
Then you have to copy the contents of /root/.ssh/id_rsa.pub from Packet Squirrel to the SSH Server authorized file:&lt;br /&gt;
&lt;br /&gt;
 user@server:~# mkdir ~/.ssh&lt;br /&gt;
 user@server:~# echo &#039;paste id_rsa.pub contents inside this quote&#039; &amp;gt; ~/.ssh/authorized_keys&lt;br /&gt;
===== Run Metasploit with Resource =====&lt;br /&gt;
 msf@server:~# msfconsole -r server.rc&lt;br /&gt;
&lt;br /&gt;
==== LED Definitions ====&lt;br /&gt;
# Configure NETMODE&lt;br /&gt;
#* Solid Magenta&lt;br /&gt;
# Connect to SSH Server&lt;br /&gt;
#* SUCCESS - Blink Amber 5 Times&lt;br /&gt;
#* FAIL - Blink Red 2 Times&lt;br /&gt;
# Launch meterpreter&lt;br /&gt;
#* SUCESS - Blink Cyan 1 Time&lt;br /&gt;
#* FAIL - Blink Red 1 Time&lt;br /&gt;
&lt;br /&gt;
==== Hardening Recommendations ====&lt;br /&gt;
# Use an accout with limited privileges for SSH acces on the server.&lt;br /&gt;
# User a dedicated account for Packet Squirrel device (audit usage with SSH access logs).&lt;br /&gt;
# Disable PasswordAuthentication in sshd_config on the server.&lt;br /&gt;
&lt;br /&gt;
=== ISpyintel ===&lt;br /&gt;
[[File:Packet squirrel ispyintel.PNG |thumb|right|400px||Packet Squirrel Payload ISpyIntel settings]]&lt;br /&gt;
This payload will automate gathering various recon data on whatever passes between it&#039;s Ethernet ports. You can download this payload from the [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/sniffing/ispyintel official hak5 github].&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This payload requires a usb stick to store loot.&lt;br /&gt;
==== Setup ====&lt;br /&gt;
# Edit the config variables at the top. The main variables are:&lt;br /&gt;
## &amp;lt;code&amp;gt;lootPath=&amp;quot;/mnt/loot/intel&amp;quot;  # Path to loot&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;mode=&amp;quot;TRANSPARENT&amp;quot;          # Network mode we want to use&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;interface=&amp;quot;br-lan&amp;quot;          # Interface to listen on&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy payload.sh into the ~/payloads/switch folder you wish to deploy on.&lt;br /&gt;
# Connect into a target machine with access to the LAN.&lt;br /&gt;
# Set switch to the spot and power up.&lt;br /&gt;
# Leave, get coffee, take a nap while everything is recorded and parsed for future use.&lt;br /&gt;
# When done; hit the button. The LED will rapidly flash white to let you know it is finishing up.&lt;br /&gt;
# When all is done the LED will just go blank. It is now safe to unplug and go about your day.&lt;br /&gt;
&lt;br /&gt;
==== Tasks that are started ====&lt;br /&gt;
* tcpdump - records every packet that was send and received&lt;br /&gt;
* urlsnarf - collects all websites that were visited&lt;br /&gt;
* dsniff - attempts to acquire passwords and what not&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common password fields&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common session id fields&lt;br /&gt;
* log.txt - logs the progress of the payload for troubleshooting&lt;br /&gt;
&lt;br /&gt;
==== Clean Up ====&lt;br /&gt;
Once the button is pressed the payload will automatically parse the TCPDump log file for the following items and store the results in seperate files.&lt;br /&gt;
As this process can take some time the LED will change to a rapid white blink letting you know the button command was recieved and the payload is in the process of shutting down.&lt;br /&gt;
* ipv4found.txt Will contain a unique list of all the ipv4 which the pcap file contains&lt;br /&gt;
* maybeEmails.txt Is a very loose search for possible email addresses that came across the wire in plain text.&lt;br /&gt;
&lt;br /&gt;
=== Creating your own Payloads ===&lt;br /&gt;
&lt;br /&gt;
Ducky Script is the payload language of Hak5 and consists of several simple commands specific to the Packet Squirrel hardware and bash. The basic Ducky Script commands are describe below and include NETMODE, LED, BUTTON and SWITCH.&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel allows us to create our own attack payloads by loading them to the USB stick and naming them Switch1 to Switch3.&lt;br /&gt;
It allows as to create payload in python, bash or PHP. For Python and Bash it is important to use the interpreter directive Python: &amp;lt;code&amp;gt;#!/usr/bin/python&amp;lt;/code&amp;gt;, bash: &amp;lt;code&amp;gt;#!/usr/bin/bash&amp;lt;/code&amp;gt;.&lt;br /&gt;
Bash scripts can access the following pre-installed tools:&lt;br /&gt;
openvpn, autossh, tcpdump, meterpreter-https, cron, nmap, ncat-ssl, ncat, sshfs, tcpdump and wget&lt;br /&gt;
&lt;br /&gt;
The featured Squirrel Script offers the following additional commands:&lt;br /&gt;
&lt;br /&gt;
* NETMODE&lt;br /&gt;
specifies which network mode Packet Sqirrel uses and how traffic is routed&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Description&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE BRIDGE || Creates a bridge between the IN and OUT ehternet interface, with an own IP address for Packet Sqirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE TRANSPARENT || Also creates a bridge between the interfaces but with no own IP address&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE NAT || Packet Squirrel gets an IP address from the target network, the client gets an IP from Packet Squirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE VPN || same as NAT with VPN interface for client tunneling&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE CLONE || Clones the MAC address from the target client and uses it to connect to the LAN&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* LED&lt;br /&gt;
with this command the multi-color LED can be controlled.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the LED, its colors, patterns and states can be found [https://docs.hak5.org/hc/en-us/articles/360010554653-LED here]. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Possible configurations !! Description&lt;br /&gt;
|-&lt;br /&gt;
| LED Colors || red, green, blue, yellow, cyan, magenta, white&lt;br /&gt;
|-&lt;br /&gt;
| LED Patterns || SOLID, SLOW, FAST, SINGLE, DOUBLE, TRIPLE, SUCCESS, 1-10000&lt;br /&gt;
|-&lt;br /&gt;
| LED State || SETUP, FAIL, ATTACK, STAGE, SPECIAL, CLEANUP, FINISH&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* BUTTON&lt;br /&gt;
The BUTTON command pauses the paylpoad until the hardware button is pressed or a specified time has passed.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the Ducky Script’s “Button” command like its return value, possible ways of configuring the wait time, LED color during the pause as well as the option to suppress the LED can be found [https://docs.hak5.org/hc/en-us/articles/360010554673-BUTTON here]. &lt;br /&gt;
&lt;br /&gt;
* SWITCH&lt;br /&gt;
The SWITCH command returns the current position of the hardware payload selection switch. Output is &amp;quot;switch1&amp;quot;, &amp;quot;switch2&amp;quot;, &amp;quot;switch3&amp;quot; or &amp;quot;switch4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Example and Best Practices ====&lt;br /&gt;
[[File:Hak5 C2 start.jpg |thumb|right|400px||C2 server start]]&lt;br /&gt;
[[File:Hak5 c2 dashboard.jpg |thumb|right|400px||C2 Dashboard]]&lt;br /&gt;
[[File:Hak5 c2 sqirrel.jpg |thumb|right|400px||C2 Packet Squirrel]]&lt;br /&gt;
&lt;br /&gt;
As shown below, payloads should begin with comments specifying the name of the payload, a description, the author(s), the target, special requirements, category, netmodes and the LED status.&lt;br /&gt;
&lt;br /&gt;
Configurable options should be placed on the top of the payload file.&lt;br /&gt;
&lt;br /&gt;
The LED should be used regarding common payload states and not with unique pattern combinations. The LED command should precede the NETMODE command indicating a specific state like SETUP or even FAIL if specific conditions are not met. If a payload reaches a FINISH state, the Packet Squirrel is safe to power off.&lt;br /&gt;
&lt;br /&gt;
Here is an example for the usage of Squirrel Script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Title: Caternet&lt;br /&gt;
# Author: Hak5Darren&lt;br /&gt;
# Version: 1.0&lt;br /&gt;
# Description: Forwards all traffic to local webserver hosting cat photos.&lt;br /&gt;
# Props: In loving memory of Hak5Kerby&lt;br /&gt;
&lt;br /&gt;
LED SETUP&lt;br /&gt;
NETMODE NAT&lt;br /&gt;
echo &amp;quot;address=/#/172.16.32.1&amp;quot; &amp;gt; /tmp/dnsmasq.address&lt;br /&gt;
/etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
LED ATTACK&lt;br /&gt;
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53&lt;br /&gt;
python -m SimpleHTTPServer 80&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information go to the [https://docs.hak5.org/hc/en-us/sections/360002180414-Payload-Development hak5.org webpage].&lt;br /&gt;
&lt;br /&gt;
== with Cloud C2 ==&lt;br /&gt;
&lt;br /&gt;
The [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2] is a command and control server for Hak5 devices. Installation and startup is shown in figure &amp;quot;C2 server start&amp;quot;. By browsing to the configured address you can login to the dashboard, shown in figure &amp;quot;C2 dashboard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To connect the Packet Squirrel with your C2 Cloud, click on the plus button in the lower right corner and choose the device. On the dashboard, open the added device and click on Setup, as shown in figure &amp;quot;C2 Packet Sqirrel&amp;quot;. Then copy the downloaded file to the Packet Squirrel&#039;s /etc folder and reboot it. &lt;br /&gt;
In the Overview tab you can also Edit, Reboot, Wipe and Remove your device. &lt;br /&gt;
&lt;br /&gt;
In the Clients tab you can see all clients which were connected to your Packet Squirrel with hostname, MAC and IP address. In the Loot tab, you can open the current loot from your Packet Squirrel directly on your C2 server. And in the Terminal tab you can open a ssh session to your device.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Packet Squirrel + Field Guide]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://docs.hak5.org/packet-squirrel/&lt;br /&gt;
* https://docs.hak5.org/cloud-c2/&lt;br /&gt;
* https://docs.hak5.org/packet-squirrel/payload-development/ducky-script-for-packet-squirrel&lt;br /&gt;
* https://downloads.hak5.org/&lt;br /&gt;
* https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11731</id>
		<title>Hak5 Packet Squirrel</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Packet_Squirrel&amp;diff=11731"/>
		<updated>2023-08-17T08:09:25Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Changed used Hardware to the current one&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Packet Squirrel Connectors.jpg |thumb|right|400px||Packet Squirrel device]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel operates as an Ethernet Man in the Middle and comes  preloaded with three exploit scripts. These three attack modes are Logging Network Traffic, Spoofing DNS and OpenVPN Tunnel. These can also be modified and exchanged with other scripts. It&#039;s stealthy pocket-size enables it to be placed without notice, this can come in handy for penetration testers. The efficient energy usage makes it possible to power it with a battery pack to run over a week.&lt;br /&gt;
The Packet Squirrel can also be combined with the [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2], a command and control server specially for Hak5 devices.&lt;br /&gt;
&lt;br /&gt;
The device brings following characteristics with it:&lt;br /&gt;
# Dimensions: 50 x 40 x 15 mm – small and lightweight with 24 grams&lt;br /&gt;
# Consumption: 0,12A using a Micro-USB-Port&lt;br /&gt;
## Can be run with a battery pack&lt;br /&gt;
# Ports: 2 x RJ45-Ethernet-Port | 1 x USB-Port for a flash drive | Micro-USB-Port for power supply&lt;br /&gt;
# OS: Runs a Linux platform with root access and common network utilities&lt;br /&gt;
# Hardware &lt;br /&gt;
## LED indicating the status of the device &lt;br /&gt;
## Payload Selection Switch to choose the respective payload&lt;br /&gt;
## Scriptable push-button to stop payloads with ease&lt;br /&gt;
&lt;br /&gt;
==== Possible attacks with the Packet Squirrel ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Man-in-the-Middle Attack (MITM)&#039;&#039;&#039; is a popular cyber security attack which is described by an attacker interfering physically, or nowadays often logically, the communication between two or more network targets. Thus, the attacker gains complete control over the data traffic and can read, store, block, manipulate or delete the data traffic. The crux of the attack is that the attacker pretends to be the respective counterpart to the communication partners.&lt;br /&gt;
&lt;br /&gt;
The MITM-Attack can be realized by another attack called &#039;&#039;&#039;Spoofing&#039;&#039;&#039;. Spoofing is when a hacker pretends to be someone known to an individual or network host to access confidential information. Spoofing can technically occur in many ways, among others ARP, DHCP or DNS Spoofing.&lt;br /&gt;
&lt;br /&gt;
== Community ==&lt;br /&gt;
&lt;br /&gt;
Hak5 does not only provide the opportunity to use following payloads fluently and easy using the switch on the side but additionally fosters building a [https://hak5.org/pages/payloads community] regarding all there devices.&lt;br /&gt;
&lt;br /&gt;
The Hak5-webiste provides a way of submitting self-made payloads or to ask questions in a [https://forums.hak5.org/forum/94-packet-squirrel/ forum]. To promote the development of new payloads and to reward creativity, effort and collaboration Hak5 provides the possibility to submit a payload to “Hak5 Payload Awards” to receive a monetary reward in a hight of $ 2.000, -. The winner will be decided yearly by the voting community.&lt;br /&gt;
&lt;br /&gt;
Through [https://github.com/hak5/packetsquirrel-payloads Hak5’s Github-Account] payloads are made available to public and can be downloaded/cloned within the respective repository.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
[[File:Hak5_Squirrel_version.jpg|thumb|right|400px||SSH connect]]&lt;br /&gt;
[[File:Hak5_Squirrel_spoofhost.jpg|thumb|right|400px||spoofhost file]]&lt;br /&gt;
[[File:Hak5_Squirrel_browser.jpg|thumb|right|400px||Spoofed browser warning]]&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel has an switch to choose between the three exploit payloads for logging the TCP dump, Using VPN Tunnelling and for DNS spoofing, or Arming Mode.&lt;br /&gt;
 &lt;br /&gt;
In &#039;&#039;&#039;Arming Mode&#039;&#039;&#039; (switch in 4th position, nearest to the USB port) you can easily access the device with ssh &amp;lt;code&amp;gt;root@172.16.32.1&amp;lt;/code&amp;gt; with the password &amp;lt;code&amp;gt;hak5squirrel&amp;lt;/code&amp;gt;. Therefore Packet Squirrel acts as DHCP server. If you don&#039;t get an IP address, manually configure an IP from the 172.16.32.0/24 network on your ethernet interface. Arming Mode is indicated by a blue blinking LED an allows to configure the different payloads.&lt;br /&gt;
&lt;br /&gt;
It is also possible to gain ssh access to the device during the attack modes with the IP address of the outgoing Ethernet interface as well.    &lt;br /&gt;
&lt;br /&gt;
==== Basic Cable Setup ====&lt;br /&gt;
&lt;br /&gt;
# Plug the victims Ethernet cable into the &amp;quot;Ethernet In&amp;quot; Port&lt;br /&gt;
# Plug the gateway Ethernet cable  into the &amp;quot;Ethernet Out&amp;quot; Port&lt;br /&gt;
# Power the device by plugging in the power cable&lt;br /&gt;
&lt;br /&gt;
==== Firmware Upgrade ====&lt;br /&gt;
&lt;br /&gt;
Shiped devices are installed with version 1.0, which can be seen in the VERSION file in the Packet Squirrel root folder. The current version 3.2 can be downloaded from the [https://downloads.hak5.org/squirrel Hak5 website].&lt;br /&gt;
&lt;br /&gt;
The file has to be named upgrade-version.bin (where version stands for the version number) and copied to the root directory of an NTFS or EXT4 formatted USB drive.&lt;br /&gt;
&lt;br /&gt;
Plug in the USB drive in the Packet Squirrel and set the select switch to Arming Mode. Then power on the Packet Squirrel. &lt;br /&gt;
&lt;br /&gt;
The upgrade process needs 5 minutes and is indicated by a solid red or blue LED light. When the firmware upgrade is finished, Packet Squirrel reboots and goes in Arming Mode. Shown by a blue blinking LED. &lt;br /&gt;
&lt;br /&gt;
Then you can connect again with SSH and verify the new version, shown in Figure &amp;quot;SSH connect&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Manual upgrade ====&lt;br /&gt;
&lt;br /&gt;
It is also possible to manually upgrade the firmware of the Packet Squirrel by:&lt;br /&gt;
&lt;br /&gt;
# Download the latest firmware from the website linked above and verify the checksum&lt;br /&gt;
# Switch into “Arming Mode” and power on the device&lt;br /&gt;
# Use SCP to transfer the file to Packet Squirrel’s /tmp directory. The appropriate command could be: scp upgrade-x.x.bin root@172.16.32.1:/tmp/&lt;br /&gt;
# Use SSH (command: ssh root@172.16.31.1) to connect to Packet Squirrel’s bash prompt and use the sysupgrade command (sysupgrade -n /tmp/upgrade-x.x.bin) to start the firmware update&lt;br /&gt;
# The process may take 5-10 minutes. Do NOT unplug the device during the process, otherwise the device could become inoperable.&lt;br /&gt;
&lt;br /&gt;
==== Formatting the USB-Stick ====&lt;br /&gt;
&lt;br /&gt;
The Hak5 Packet Squirrel can only operate with a USB disk that is formatted with an NTFS or EXT4 file system. &lt;br /&gt;
&lt;br /&gt;
NTFS (New Technology File System) is a proprietary journaling file system that was developed by Microsoft and offers targeted access protection at file level and greater data security through journaling and is not limited to a file size of 4GB as e.g. FAT. Formatting is performed with following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Find and open your file explorer on Windows&lt;br /&gt;
## Locate your USB-Stick in the left bar&lt;br /&gt;
## Select “Format”&lt;br /&gt;
## Set NTFS as file system using the drop down, tick “Quick Format” and click “Start”&lt;br /&gt;
&lt;br /&gt;
EXT4 is the fourth extended filesystem that was developed for the Linux Kernel and like NTFS a journaling file system. Windows cannot directly format a USB-Stick to the EXT4 format and therefore there is a need for an third-party tool. A USB-Stick is formatted to EXT4 using following steps:&lt;br /&gt;
&lt;br /&gt;
# On a Windows-machine:&lt;br /&gt;
## Download and install [https://www.diskgenius.com/download.php DiskGuard]&lt;br /&gt;
## Select your drive from the left bar&lt;br /&gt;
## Select the “Format”-button at the top bar&lt;br /&gt;
## Select the wanted file system “EXT4” from the drop down menu&lt;br /&gt;
## Click “Format”&lt;br /&gt;
&lt;br /&gt;
== Payloads ==&lt;br /&gt;
&lt;br /&gt;
Payloads can be stored on an external USB disk or on the device’s internal memory. On boot the device gives priority to payloads on the USB disk, other payloads existing on the internal memory will be overridden. If no USB disk is available, payloads stored on the internal memory are executed. Payloads on the internal memory are stored in /root/payloads and need to be called switch1, switch2 and switch3, payloads on an USB disk should be stored in /payloads/ and named accordingly.&lt;br /&gt;
&lt;br /&gt;
=== Logging Network Traffic ===&lt;br /&gt;
&lt;br /&gt;
This mode creates TCP/UDP dumps and saves them on the USB drive to analyse later on.&lt;br /&gt;
Just follow these easy steps:&lt;br /&gt;
&lt;br /&gt;
# A USB Stick with an NTFS file system needs to be plugged in the USB-A Port before the Squirrel is Powered up. &lt;br /&gt;
# Flip the first position (which is nearest to the micro USB power in).&lt;br /&gt;
# Connect the Ethernet cable of the victim into the Ethernet port, which is at the same side as the power in USB connector and Connect the Gateway Ethernet cable to the other Port.&lt;br /&gt;
# Plug the power cable in and wait the one minute long start up sequence. The device can be either powered by the victim machine or by an USB power bank.&lt;br /&gt;
# The data traffic will be captured, if the LED starts blinking Yellow. If otherwise the LED circles between red, green and blue, then the USB stick has the wrong file system.&lt;br /&gt;
# Stop the capturing process by pressing the Button. Then the device takes some seconds to write the tcpdum to the USB Storage. As soon as the LED glows red the saving process has ended and you are good to go.&lt;br /&gt;
# You can now analyse the captured pcap file, located in \loot\tcpdump with [[Wireshark]].&lt;br /&gt;
&lt;br /&gt;
After that, the connection trough the Packet Squirrel is shut down. To allow the client to connect to the network again, Packet Squirrel has to be rebooted.&lt;br /&gt;
&lt;br /&gt;
=== DNS Spoofing Mode ===&lt;br /&gt;
&lt;br /&gt;
This mode spoofs the client with DNS entries to redirect traffic to other IP addresses.&lt;br /&gt;
&lt;br /&gt;
# For this mode we have to start in arming mode (switch at fourth position)&lt;br /&gt;
# After gaining access with ssh we change to the DNS spoofing directory with &amp;lt;code&amp;gt;cd /payloads/switch2&amp;lt;/code&amp;gt;.&lt;br /&gt;
# There we can define the Spoofed domain names by editing the file spoofhost with &amp;lt;code&amp;gt;nano spoofhost&amp;lt;/code&amp;gt;.&lt;br /&gt;
# In the file add entrys like &amp;lt;code&amp;gt;address=/myspoofdomain.at/194.232.104.140&amp;lt;/code&amp;gt; as shown in figure &amp;quot;spoofhost file&amp;quot;. The example IP belongs to orf.at&lt;br /&gt;
# Unplug the Packet Squirrel and shift the switch to the second position.&lt;br /&gt;
# Plug it in and wait until the startup sequence is finished and the LED starts blinking yellow.&lt;br /&gt;
&lt;br /&gt;
By browsing to the spoofed domain, the request gets redirected to the given IP. As shown in figure &amp;quot;Spoofed browser warning&amp;quot; browsers show certificate alerts because the domain and certificate do not match. But this mode can still be used to attack other applications which use domains with no validation.&lt;br /&gt;
&lt;br /&gt;
=== OpenVPN Mode ===&lt;br /&gt;
[[File:Packet Squirrel VPN1.jpg |thumb|right|400px||OpenVPN Access Mode]]&lt;br /&gt;
[[File:Packet Squirrel VPN2.jpg |thumb|right|400px||OpenVPN Tunneling Mode]]&lt;br /&gt;
&lt;br /&gt;
The VPN payload implements VPN access mode and VPN tunnelling mode. &lt;br /&gt;
If you want to Setup your own OpenVPN (OVPN) server follow the instructions at the [https://docs.hak5.org/hc/en-us/articles/360010554013-OpenVPN-Payload hak5 webpage]. For the purpose of testing we use use an existing server from [https://www.freeopenvpn.org/en/ freeopenvpn.org]. &lt;br /&gt;
# Start by selecting the desired server and download the the OVPN access certificate.&lt;br /&gt;
# Set the Packet Squirrel in Arming Mode and connect to its shell&lt;br /&gt;
# Copy the certificate with &amp;lt;code&amp;gt;scp user@server:downloadfolder/filename.ovpn /root/payloads/switch3/config.ovpn&amp;lt;/code&amp;gt;&lt;br /&gt;
# Steer to the directory with &amp;lt;code&amp;gt; cd /root/payloads/switch3/&amp;lt;/code&amp;gt;&lt;br /&gt;
# Edit the config.ovpn at line 30 to &amp;lt;code&amp;gt;auth-user-pass credentials.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
# Add an credentials file with  &amp;lt;code&amp;gt; nano credentials.txt&amp;lt;/code&amp;gt; and add the two lines:&lt;br /&gt;
## &amp;lt;code&amp;gt;freeopenvpn&amp;lt;/code&amp;gt; &lt;br /&gt;
## &amp;lt;code&amp;gt;&amp;lt;the displayed password&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
# Before starting the VPN we choose the VPN mode:&lt;br /&gt;
## Open the &amp;lt;code&amp;gt;payload.sh&amp;lt;/code&amp;gt; &lt;br /&gt;
## Set the &amp;lt;code&amp;gt;For_Clients=&amp;lt;/code&amp;gt;  to&lt;br /&gt;
### &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for Access Mode&lt;br /&gt;
### &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; for Tunneling Mode&lt;br /&gt;
# Now set the Switch the the third Position and plug power out and in again&lt;br /&gt;
# You are good to go, if the yellow LED starts to flash after the boot up sequence  &lt;br /&gt;
==== Access Mode ====&lt;br /&gt;
&lt;br /&gt;
Access mode allows the squirrel to access the VPN Network via the Secure Shell&lt;br /&gt;
If the connection was established if the command &amp;lt;code&amp;gt;ifconfig tun0&amp;lt;/code&amp;gt; show the following output when it is issued at the Packet Squirrels Shell.&lt;br /&gt;
 tun0 &lt;br /&gt;
      Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;br /&gt;
      inet addr:192.168.231.245 P-t-P:192.168.231.245 Mask:255.255.255.0&lt;br /&gt;
      UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1&lt;br /&gt;
      RX packets:12 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
      collisions:0 txqueuelen:100&lt;br /&gt;
      RX bytes:1404 (1.3 KiB) TX bytes:608 (608.0 B)&lt;br /&gt;
&lt;br /&gt;
The Access Mode can be used to access an Private network that is used for testing and pen testing purposes like an honeypot virtual machine.&lt;br /&gt;
&lt;br /&gt;
==== Tunneling Mode ====&lt;br /&gt;
&lt;br /&gt;
The Tunnelling mode encapsulates all the traffic and sends it to the VPN Server, from where it is send to the internet. VPN Tunnelling allows users to disguise their IP address you can check your current IP address with [https://www.ipchicken.com ipchicken.com].&lt;br /&gt;
&lt;br /&gt;
You can also install an simple openVPN Server on a linux machine with&lt;br /&gt;
&amp;lt;code&amp;gt;wget https://git.io/vpn -O openvpn.sh &amp;amp;&amp;amp; bash openvpn.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
and press Enter 6 times.&lt;br /&gt;
Then copy the generated client.ovpn file to Packet Squirrel in the /payload/switch3 folder and restart it with the switch on third position.&lt;br /&gt;
=== Meterpreter-via-SSH ===&lt;br /&gt;
[[File:Packet squirrel meterpreter ssh.PNG |thumb|right|400px||Packet Squirrel Payload Meterpreter-via-SSH settings]]&lt;br /&gt;
This payload starts the Packet Squirrel in NAT mode and waits for user input. When the button is pressed, the payload connects to a remote SSH server and creates a local port tunnel. It then launches a meterpreter shell over the tunnel.&lt;br /&gt;
The intent is to hide the meterpreter network traffic behind a legitimate SSH activity.&lt;br /&gt;
You can download this payload from the offical [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/remote-access/Meterpreter-via-SSH hak5 github].&lt;br /&gt;
==== Getting Started ====&lt;br /&gt;
Copy the playload to the Packet Squirrel into the desired switch folder. Now edit the scirpt to configure your server  options:&lt;br /&gt;
* SSH_USER - username on remote SSH server&lt;br /&gt;
* SSH_HOST - ip address of remote SSH Server&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If you changed the default meterpreter port don&#039;t forget to change it on the metasploit side as well.&lt;br /&gt;
* MSF_PORT&lt;br /&gt;
&lt;br /&gt;
===== Generate SSH Key on Squirrel =====&lt;br /&gt;
Now you have to generate an ssh key-pair (just use default location and empty password) on your Packet Squirrel:&lt;br /&gt;
 root@squirrel:~# ssh-keygen&lt;br /&gt;
===== Allow Squirrel on SSH Server =====&lt;br /&gt;
Then you have to copy the contents of /root/.ssh/id_rsa.pub from Packet Squirrel to the SSH Server authorized file:&lt;br /&gt;
&lt;br /&gt;
 user@server:~# mkdir ~/.ssh&lt;br /&gt;
 user@server:~# echo &#039;paste id_rsa.pub contents inside this quote&#039; &amp;gt; ~/.ssh/authorized_keys&lt;br /&gt;
===== Run Metasploit with Resource =====&lt;br /&gt;
 msf@server:~# msfconsole -r server.rc&lt;br /&gt;
&lt;br /&gt;
==== LED Definitions ====&lt;br /&gt;
# Configure NETMODE&lt;br /&gt;
#* Solid Magenta&lt;br /&gt;
# Connect to SSH Server&lt;br /&gt;
#* SUCCESS - Blink Amber 5 Times&lt;br /&gt;
#* FAIL - Blink Red 2 Times&lt;br /&gt;
# Launch meterpreter&lt;br /&gt;
#* SUCESS - Blink Cyan 1 Time&lt;br /&gt;
#* FAIL - Blink Red 1 Time&lt;br /&gt;
&lt;br /&gt;
==== Hardening Recommendations ====&lt;br /&gt;
# Use an accout with limited privileges for SSH acces on the server.&lt;br /&gt;
# User a dedicated account for Packet Squirrel device (audit usage with SSH access logs).&lt;br /&gt;
# Disable PasswordAuthentication in sshd_config on the server.&lt;br /&gt;
&lt;br /&gt;
=== ISpyintel ===&lt;br /&gt;
[[File:Packet squirrel ispyintel.PNG |thumb|right|400px||Packet Squirrel Payload ISpyIntel settings]]&lt;br /&gt;
This payload will automate gathering various recon data on whatever passes between it&#039;s Ethernet ports. You can download this payload from the [https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library/sniffing/ispyintel official hak5 github].&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This payload requires a usb stick to store loot.&lt;br /&gt;
==== Setup ====&lt;br /&gt;
# Edit the config variables at the top. The main variables are:&lt;br /&gt;
## &amp;lt;code&amp;gt;lootPath=&amp;quot;/mnt/loot/intel&amp;quot;  # Path to loot&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;mode=&amp;quot;TRANSPARENT&amp;quot;          # Network mode we want to use&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;interface=&amp;quot;br-lan&amp;quot;          # Interface to listen on&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy payload.sh into the ~/payloads/switch folder you wish to deploy on.&lt;br /&gt;
# Connect into a target machine with access to the LAN.&lt;br /&gt;
# Set switch to the spot and power up.&lt;br /&gt;
# Leave, get coffee, take a nap while everything is recorded and parsed for future use.&lt;br /&gt;
# When done; hit the button. The LED will rapidly flash white to let you know it is finishing up.&lt;br /&gt;
# When all is done the LED will just go blank. It is now safe to unplug and go about your day.&lt;br /&gt;
&lt;br /&gt;
==== Tasks that are started ====&lt;br /&gt;
* tcpdump - records every packet that was send and received&lt;br /&gt;
* urlsnarf - collects all websites that were visited&lt;br /&gt;
* dsniff - attempts to acquire passwords and what not&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common password fields&lt;br /&gt;
* ngrep - on ports 80 and 21 with the filter for common session id fields&lt;br /&gt;
* log.txt - logs the progress of the payload for troubleshooting&lt;br /&gt;
&lt;br /&gt;
==== Clean Up ====&lt;br /&gt;
Once the button is pressed the payload will automatically parse the TCPDump log file for the following items and store the results in seperate files.&lt;br /&gt;
As this process can take some time the LED will change to a rapid white blink letting you know the button command was recieved and the payload is in the process of shutting down.&lt;br /&gt;
* ipv4found.txt Will contain a unique list of all the ipv4 which the pcap file contains&lt;br /&gt;
* maybeEmails.txt Is a very loose search for possible email addresses that came across the wire in plain text.&lt;br /&gt;
&lt;br /&gt;
=== Creating your own Payloads ===&lt;br /&gt;
&lt;br /&gt;
Ducky Script is the payload language of Hak5 and consists of several simple commands specific to the Packet Squirrel hardware and bash. The basic Ducky Script commands are describe below and include NETMODE, LED, BUTTON and SWITCH.&lt;br /&gt;
&lt;br /&gt;
The Packet Squirrel allows us to create our own attack payloads by loading them to the USB stick and naming them Switch1 to Switch3.&lt;br /&gt;
It allows as to create payload in python, bash or PHP. For Python and Bash it is important to use the interpreter directive Python: &amp;lt;code&amp;gt;#!/usr/bin/python&amp;lt;/code&amp;gt;, bash: &amp;lt;code&amp;gt;#!/usr/bin/bash&amp;lt;/code&amp;gt;.&lt;br /&gt;
Bash scripts can access the following pre-installed tools:&lt;br /&gt;
openvpn, autossh, tcpdump, meterpreter-https, cron, nmap, ncat-ssl, ncat, sshfs, tcpdump and wget&lt;br /&gt;
&lt;br /&gt;
The featured Squirrel Script offers the following additional commands:&lt;br /&gt;
&lt;br /&gt;
* NETMODE&lt;br /&gt;
specifies which network mode Packet Sqirrel uses and how traffic is routed&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Description&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE BRIDGE || Creates a bridge between the IN and OUT ehternet interface, with an own IP address for Packet Sqirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE TRANSPARENT || Also creates a bridge between the interfaces but with no own IP address&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE NAT || Packet Squirrel gets an IP address from the target network, the client gets an IP from Packet Squirrel&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE VPN || same as NAT with VPN interface for client tunneling&lt;br /&gt;
|-&lt;br /&gt;
| NETMODE CLONE || Clones the MAC address from the target client and uses it to connect to the LAN&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* LED&lt;br /&gt;
with this command the multi-color LED can be controlled.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the LED, its colors, patterns and states can be found [https://docs.hak5.org/hc/en-us/articles/360010554653-LED here]. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Possible configurations !! Description&lt;br /&gt;
|-&lt;br /&gt;
| LED Colors || red, green, blue, yellow, cyan, magenta, white&lt;br /&gt;
|-&lt;br /&gt;
| LED Patterns || SOLID, SLOW, FAST, SINGLE, DOUBLE, TRIPLE, SUCCESS, 1-10000&lt;br /&gt;
|-&lt;br /&gt;
| LED State || SETUP, FAIL, ATTACK, STAGE, SPECIAL, CLEANUP, FINISH&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* BUTTON&lt;br /&gt;
The BUTTON command pauses the paylpoad until the hardware button is pressed or a specified time has passed.&lt;br /&gt;
&lt;br /&gt;
Further information regarding the Ducky Script’s “Button” command like its return value, possible ways of configuring the wait time, LED color during the pause as well as the option to suppress the LED can be found [https://docs.hak5.org/hc/en-us/articles/360010554673-BUTTON here]. &lt;br /&gt;
&lt;br /&gt;
* SWITCH&lt;br /&gt;
The SWITCH command returns the current position of the hardware payload selection switch. Output is &amp;quot;switch1&amp;quot;, &amp;quot;switch2&amp;quot;, &amp;quot;switch3&amp;quot; or &amp;quot;switch4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Example and Best Practices ====&lt;br /&gt;
[[File:Hak5 C2 start.jpg |thumb|right|400px||C2 server start]]&lt;br /&gt;
[[File:Hak5 c2 dashboard.jpg |thumb|right|400px||C2 Dashboard]]&lt;br /&gt;
[[File:Hak5 c2 sqirrel.jpg |thumb|right|400px||C2 Packet Squirrel]]&lt;br /&gt;
&lt;br /&gt;
As shown below, payloads should begin with comments specifying the name of the payload, a description, the author(s), the target, special requirements, category, netmodes and the LED status.&lt;br /&gt;
&lt;br /&gt;
Configurable options should be placed on the top of the payload file.&lt;br /&gt;
&lt;br /&gt;
The LED should be used regarding common payload states and not with unique pattern combinations. The LED command should precede the NETMODE command indicating a specific state like SETUP or even FAIL if specific conditions are not met. If a payload reaches a FINISH state, the Packet Squirrel is safe to power off.&lt;br /&gt;
&lt;br /&gt;
Here is an example for the usage of Squirrel Script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Title: Caternet&lt;br /&gt;
# Author: Hak5Darren&lt;br /&gt;
# Version: 1.0&lt;br /&gt;
# Description: Forwards all traffic to local webserver hosting cat photos.&lt;br /&gt;
# Props: In loving memory of Hak5Kerby&lt;br /&gt;
&lt;br /&gt;
LED SETUP&lt;br /&gt;
NETMODE NAT&lt;br /&gt;
echo &amp;quot;address=/#/172.16.32.1&amp;quot; &amp;gt; /tmp/dnsmasq.address&lt;br /&gt;
/etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
LED ATTACK&lt;br /&gt;
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 53 -j REDIRECT --to-port 53&lt;br /&gt;
python -m SimpleHTTPServer 80&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information go to the [https://docs.hak5.org/hc/en-us/sections/360002180414-Payload-Development hak5.org webpage].&lt;br /&gt;
&lt;br /&gt;
== with Cloud C2 ==&lt;br /&gt;
&lt;br /&gt;
The [https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2 Hak5 Cloud C2] is a command and control server for Hak5 devices. Installation and startup is shown in figure &amp;quot;C2 server start&amp;quot;. By browsing to the configured address you can login to the dashboard, shown in figure &amp;quot;C2 dashboard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To connect the Packet Squirrel with your C2 Cloud, click on the plus button in the lower right corner and choose the device. On the dashboard, open the added device and click on Setup, as shown in figure &amp;quot;C2 Packet Sqirrel&amp;quot;. Then copy the downloaded file to the Packet Squirrel&#039;s /etc folder and reboot it. &lt;br /&gt;
In the Overview tab you can also Edit, Reboot, Wipe and Remove your device. &lt;br /&gt;
&lt;br /&gt;
In the Clients tab you can see all clients which were connected to your Packet Squirrel with hostname, MAC and IP address. In the Loot tab, you can open the current loot from your Packet Squirrel directly on your C2 server. And in the Terminal tab you can open a ssh session to your device.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Packet Squirrel + Field Guide]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://docs.hak5.org/hc/en-us/categories/360000982574-Packet-Squirrel&lt;br /&gt;
* https://docs.hak5.org/hc/en-us/categories/360001177114-Cloud-C2&lt;br /&gt;
* https://docs.hak5.org/hc/en-us/articles/360010554613-Ducky-Script-for-Packet-Squirrel&lt;br /&gt;
* https://downloads.hak5.org/&lt;br /&gt;
* https://github.com/hak5/packetsquirrel-payloads/tree/master/payloads/library&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Shark_Jack&amp;diff=11730</id>
		<title>Hak5 Shark Jack</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Shark_Jack&amp;diff=11730"/>
		<updated>2023-08-17T07:43:48Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added Used Hardware Link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[File:Shark_Jack.jpg |thumb|right|600px||Shark Jack]]&lt;br /&gt;
&lt;br /&gt;
The Shark Jack is a penetration tool for penetration testers and system administrators looking like a simple USB-Stick. It consists of three main components: a LAN-Port for configuration and executing pentests (which also uses a RGB-LED for visual responses), a USB-C port for charging and a slider to change modes. It provides possibilities to perform network audits and information gathering attacks. These functions are provided by the packages which are installed on the Shark Jack. The packages are provided by the OpenWRT platform, which means that users can add other packages than the preinstalled ones. Regarding the phases of penetration testing, Shark Jack is in phase 2, information gathering.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Modes ===&lt;br /&gt;
&lt;br /&gt;
* OFF (Slider is in position nearest to USB-C) - charging&lt;br /&gt;
* Arming (Slider is in middle position) - configurating&lt;br /&gt;
* Attack (Slider is in position nearest to LAN) - pentesting&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Shark Jack ===&lt;br /&gt;
&lt;br /&gt;
# Change mode to arming.&lt;br /&gt;
# Plug the Shark Jack into one of the LAN ports of your computer.&lt;br /&gt;
# Your PC will get an IP-address in range 172.16.24.0/24.&lt;br /&gt;
# Connect via SSH to 172.16.24.1.&lt;br /&gt;
# You are now connected to the Shark Jack.&lt;br /&gt;
&lt;br /&gt;
=== Folder structure ===&lt;br /&gt;
&lt;br /&gt;
The Shark Jack folder structure consists of two predefined directories:&lt;br /&gt;
* payloads&lt;br /&gt;
* loot&lt;br /&gt;
The payloads directory is the place where the code is located which you want to be executed when the Shark Jack is in Attacking Mode. The filename of the code needs to be &amp;lt;code&amp;gt;payload.sh&amp;lt;/code&amp;gt;. Only one payload script may exist at a time. The loot directory is the place where you can save the results of the network attack.&lt;br /&gt;
&lt;br /&gt;
=== Installing/updating packages (optional) ===&lt;br /&gt;
&lt;br /&gt;
# [[#Setting_up_the_Shark_Jack|Connect]] to your Shark Jack to your PC.&lt;br /&gt;
# Enter the command &amp;lt;code&amp;gt;NETMODE DHCP_CLIENT&amp;lt;/code&amp;gt;&lt;br /&gt;
# The Shark Jack will now act as a normal client waiting for an IP-address from an DHCP-Server.&lt;br /&gt;
# Connect the Shark Jack to your router.&lt;br /&gt;
# Gather the IP-addres of the Shark Jack (Web interface of the router or form the DCHCP-Server).&lt;br /&gt;
# Connect via SSH to the new IP addres (e.g., 192.168.0.153).&lt;br /&gt;
# Use &amp;lt;code&amp;gt;opkg upgrade [package]&amp;lt;/code&amp;gt; for updating packages or &amp;lt;code&amp;gt;opkg install[package]&amp;lt;/code&amp;gt; for installing new packages.&lt;br /&gt;
&lt;br /&gt;
=== Updating firmware (optional) ===&lt;br /&gt;
&lt;br /&gt;
# Download latest update from https://downloads.hak5.org/shark&lt;br /&gt;
# [[#Setting_up_the_Shark_Jack|Connect]] to your Shark Jack to your PC and also connect the USB-C port to a reliable power source.&lt;br /&gt;
# Copy the firmware file to the Shark Jack (e.g., with scp)&lt;br /&gt;
# Change to the directory where the firmware file is located.&lt;br /&gt;
# Execute following command &amp;lt;code&amp;gt;sysupgrade -n [filename]&amp;lt;/code&amp;gt;&lt;br /&gt;
# Wait 5-10 minutes while the firmware is flashed.&lt;br /&gt;
# DO NOT unplug the Shark Jack during the update process!&lt;br /&gt;
&lt;br /&gt;
=== C2 ===&lt;br /&gt;
&lt;br /&gt;
C2 is a dashboard created by hak5 for tools from hak5, which can be easily set up on a local server for free. With C2, data can be inspected directly in the dashboard and the current state of the device can be viewed. It is also possible to let Shark Jack execute commands like nmap without a previously uploaded payload.&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
# Size: 62 x 21 x 12 mm&lt;br /&gt;
# Charging plug: USB-C&lt;br /&gt;
# Microcontroller: MT7628DAN&lt;br /&gt;
&lt;br /&gt;
=== How to attack ===&lt;br /&gt;
&lt;br /&gt;
# Shark Jack must be connected to a router or a switch to perform an attack&lt;br /&gt;
&lt;br /&gt;
=== How to defend ===&lt;br /&gt;
&lt;br /&gt;
# Routers and switches must not be accessible to unauthorized personnel&lt;br /&gt;
# Do not allow strangers to enter the company without supervision&lt;br /&gt;
# Disable unused ports&lt;br /&gt;
# Physically inspect routers and switches on a regular basis&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== nmap ===&lt;br /&gt;
The nmap payload is the default payload with which the Shark Jack is delivered.&lt;br /&gt;
It executes a nmap scan and saves the results in the loot directory.&lt;br /&gt;
&lt;br /&gt;
=== ipinfo ===&lt;br /&gt;
The ipinfo payload tries to gather information about private, public and gateway IP addresses of a network and saves the results in a log-file. &lt;br /&gt;
To obtain this information the external website http://ipinfo.io/ip is used.&lt;br /&gt;
&lt;br /&gt;
=== netdiscover ===&lt;br /&gt;
The netdiscover payload tries to gather information about a network even if the Shark Jack won&#039;t get an IP address from a DCHP-Server. There are two modes netdiscover can use: active and passive. In active mode netdiscover sends ARP packages into the network and tries to gather information about devices, which are currently online. The passive mode doesn&#039;t send packages on his own, instead it analyses the traffic of the network (see [[Sniffing_Devices]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Shark Jack network attack tool]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://hak5.org/products/shark-jack&lt;br /&gt;
* https://github.com/hak5/sharkjack-payloads/&lt;br /&gt;
* https://help.hak5.org/shark-jack/writing-payloads/included-tools&lt;br /&gt;
* [https://github.com/hak5/sharkjack-payloads/tree/master/payloads/library/recon/netdiscover nmap Github]&lt;br /&gt;
* [https://github.com/hak5/sharkjack-payloads/blob/master/payloads/library/recon/ipinfo/payload.sh ipinfo Github]&lt;br /&gt;
* [https://github.com/hak5/sharkjack-payloads/tree/master/payloads/library/recon/netdiscover netdiscover Github]&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11601</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11601"/>
		<updated>2023-04-16T15:26:07Z</updated>

		<summary type="html">&lt;p&gt;ARessl: rubber ducky link added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* Audio Players&lt;br /&gt;
* Projectors&lt;br /&gt;
* Air Conditioners&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a [https://wiki.elvis.science/index.php?title=Hak5_Rubber_Ducky Rubber Ducky], it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
&lt;br /&gt;
Applications are for a more special use of the Flipper Hardware for example to fetch and decode the signal from a weather station or use the PicoPass NFC protocol.&lt;br /&gt;
Another example would be the Bluetooth remote, which can control devices using the Bluetooth standard.&lt;br /&gt;
Furthermore, there is also a pre-installed game on the device, namely Snake.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11600</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11600"/>
		<updated>2023-04-16T15:25:00Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* U2F */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* Audio Players&lt;br /&gt;
* Projectors&lt;br /&gt;
* Air Conditioners&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
&lt;br /&gt;
Applications are for a more special use of the Flipper Hardware for example to fetch and decode the signal from a weather station or use the PicoPass NFC protocol.&lt;br /&gt;
Another example would be the Bluetooth remote, which can control devices using the Bluetooth standard.&lt;br /&gt;
Furthermore, there is also a pre-installed game on the device, namely Snake.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=ConBee_ZigBee_USB_Gateway:_Usage&amp;diff=11599</id>
		<title>ConBee ZigBee USB Gateway: Usage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=ConBee_ZigBee_USB_Gateway:_Usage&amp;diff=11599"/>
		<updated>2023-04-11T08:29:26Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Locate Packet with Symmetric Key */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a description of how to set up and use a [[ConBee ZigBee USB Gateway]] USB stick to sniff out keys of ZigBee end point devices in smart home networks.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Operating system:&lt;br /&gt;
* Ubuntu 18.04&lt;br /&gt;
Applications:&lt;br /&gt;
* Wireshark&lt;br /&gt;
* ZShark (Interface between sniffer and Wireshark, available [https://www.phoscon.de/de/conbee/software#zshark[here]]&lt;br /&gt;
* Smart Home Management App, e.g. Philips Hue for Android, available in the [https://play.google.com/store/apps/details?id=com.philips.lighting.hue2[Google Play Store]]&lt;br /&gt;
Network traffic generating devices, e.g.&lt;br /&gt;
* Philips Hue Bridge&lt;br /&gt;
* Philips Hue White LED&lt;br /&gt;
Sniffing tool&lt;br /&gt;
* ConBee ZigBee USB Gateway&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, it is recommended to be familiar with Wireshark.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Step 0: ZigBee Smart Home Provision ===&lt;br /&gt;
Be sure to have permission to hack into the ZigBee network you want to analyse. Even better, set up your own network to generate some traffic. Minimal requirements: 1 bridge and 1 connected smart home device, such as an LED lamp, preferably with an additional app e.g. for your phone, to control/manage the smart home devices.&lt;br /&gt;
&lt;br /&gt;
=== Step 1: ConBee Setup ===&lt;br /&gt;
Plug ConBee into a USB Port.&lt;br /&gt;
&lt;br /&gt;
==== Install firmware using ZShark ====&lt;br /&gt;
&lt;br /&gt;
Open ZShark. You will see this window:&lt;br /&gt;
&lt;br /&gt;
[[File:ZSharkInst.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;ConBee&amp;quot; and click &amp;quot;Connect&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If the dialog tells you there is &amp;quot;No or wrong firmware found&amp;quot;, and pressing the &amp;quot;Install Firmware&amp;quot; button doesn&#039;t prompt you to the next dialog, make sure no other USB devices are connected to your computer and try again.&lt;br /&gt;
&lt;br /&gt;
If it still doesn&#039;t change, you can also install the firmware manually. For this open a terminal and change into the ZShark-folder (that is where you have installed the application) and run this command (as root):&lt;br /&gt;
 GCFFlasher_internal -d /dev/ttyUSB0 -f /usr/share/zshark/fw/sniffer_v1_0.bin&lt;br /&gt;
where&lt;br /&gt;
# &#039;&#039;/dev/ttyUSB0&#039;&#039; is the path to your device&lt;br /&gt;
# &#039;&#039;/usr/share/zshark/fw/sniffer_v1_0.bin&#039;&#039; is the path to the firmware you want to install&lt;br /&gt;
Both paths are the absolute paths, and they may certainly differ from this solution. Make sure you look up the correct paths on your own system and use them accordingly.&lt;br /&gt;
&lt;br /&gt;
If everything worked fine, you should see a dialogue like this&lt;br /&gt;
&lt;br /&gt;
[[File:ZSharkReady.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
where the path in the COM port identifier shows you the sniffer was detected correctly.&lt;br /&gt;
&lt;br /&gt;
The remote capture IP is to use if you decide to send the captured data to Wireshark on another machine. In my case this was not necessary, as I used Wireshark on the same device.&lt;br /&gt;
&lt;br /&gt;
==== Choose ZigBee channel ====&lt;br /&gt;
&lt;br /&gt;
Channel 11 is the default ZigBee channel, so there you find your traffic unless you configured your network otherwise (in that case you obviously change it to the applicable channel). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start capturing packets with &amp;quot;Start&amp;quot;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should see the number identified by &amp;quot;Received Packets&amp;quot; in the dialogue to increase immediately.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Wireshark Configuration ===&lt;br /&gt;
Open Wireshark.&lt;br /&gt;
&lt;br /&gt;
==== Select interface ====&lt;br /&gt;
Choose the loopback interface. This is where ZShark sends packets by default.&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkInterfaces.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
Leave the input field for capture filter empty.&lt;br /&gt;
&lt;br /&gt;
==== Apply display filter ====&lt;br /&gt;
&lt;br /&gt;
 udp.port==17754 &amp;amp;&amp;amp; !icmp&lt;br /&gt;
&lt;br /&gt;
* UDP because our ZigBee devices rely on this protocol&lt;br /&gt;
* Port 17754 is designated for ZigBee packets&lt;br /&gt;
* And we don&#039;t need the ICMP output for our analysis&lt;br /&gt;
It won&#039;t do no harm if you forget to apply the filter, though you will get packets displayed you won&#039;t be interested in. You can also apply it afterwards or add additional filters to easier find specific packets.&lt;br /&gt;
&lt;br /&gt;
==== Add symmetric key of bridge ====&lt;br /&gt;
&lt;br /&gt;
Go to:&lt;br /&gt;
&lt;br /&gt;
Edit &amp;gt; Preferences &amp;gt; Protocols &amp;gt; ZigBee&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkPreferences.png|Border|500px]]&lt;br /&gt;
&lt;br /&gt;
Leave the Security Level in its default value (AES-128 Encryption, 32-bit Integrity Protection). Choose &#039;&#039;Edit&#039;&#039; at &amp;quot;Pre-configured keys&amp;quot; and add the key of your bridge, which in most cases is&lt;br /&gt;
 5A:69:67:42:65:65:41:6C:6C:69:61:6E:63:65:30:39&lt;br /&gt;
or, in this case using the &#039;&#039;&#039;Philips Hue Bridge&#039;&#039;&#039;, is&lt;br /&gt;
 81:42:86:86:5D:C1:C8:B2:C8:CB:C5:2E:5D:65:D1:B8&lt;br /&gt;
as these are mostly universal default keys so that communication in ZigBee networks can be established with lots of different devices from different vendors without further ado.&lt;br /&gt;
&lt;br /&gt;
Another possible key, if the other two do not work as intendend would be &lt;br /&gt;
 9F:55:95:F1:02:57:C8:A4:69:CB:F4:2B:C9:3F:EE:31&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both cases, choose the Byte Order &amp;quot;Normal&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Without the brigde key, you are still able to capture traffic, though you will not get access to additional information, or important insight into the payload respectively. For example, you would not be able to display the end-point device keys, which will be explained in the next step.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start capturing the packets in Wireshark as well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Wireshark Network Traffic Analysis ===&lt;br /&gt;
&lt;br /&gt;
Now you will see traffic similar to this:&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkTraffic2.jpg|border|750px]]&lt;br /&gt;
&lt;br /&gt;
It shows there was data broadcasted, unfortunately without any further details. The circled output shows contained data is encrypted.&lt;br /&gt;
&lt;br /&gt;
==== Locate Packet with Symmetric Key ====&lt;br /&gt;
To get hold of an end-point device key in a ZigBee network, look out for specific packets. A device newly entering a network sends its key decrypted until it is established and ingested into the network by the bridge. If you have configured the bridge key correctly, you should see a new device advertising its symmetric key in packets which are tagged as &#039;&#039;&#039;&amp;quot;Device Announcement&amp;quot;&#039;&#039;&#039; in the information column of Wireshark (although there are other packets as well with visible key, this is the first one where this happens).&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkDA.png|border|750px]]&lt;br /&gt;
&lt;br /&gt;
To simulate a device entering into a network, you have to reset it. With the light bulb, I simply disconnected it from its socket and re-attached it. Switching the light on and off won&#039;t help, it has to be taken off the electricity completely.&lt;br /&gt;
&lt;br /&gt;
In newer versions of ZigBee it could happen, that the &#039;&#039;&#039;&amp;quot;Device Announcement&amp;quot;&#039;&#039;&#039;does not get send as usual when reconnecting after a power loss (socket disconnection). In this case try to remove the light bulb manually from the App and reconnect it.&lt;br /&gt;
&lt;br /&gt;
==== Add end-point device key in Wireshark ====&lt;br /&gt;
Go to:&lt;br /&gt;
&lt;br /&gt;
Edit &amp;gt; Preferences &amp;gt; Protocols &amp;gt; ZigBee&lt;br /&gt;
&lt;br /&gt;
and add the key with Byte Order &amp;quot;Normal&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
From this point on, you are able to see all information, as you can adequatly decrypt it.&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkTrafficDecr.png|Border|750px]]&lt;br /&gt;
&lt;br /&gt;
This is the same packet as the first one in this section, only with added key. As you can see, the payload is now clearly visible, and it shows detailed information about the transported commands.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[ConBee ZigBee USB Gateway]]&lt;br /&gt;
&lt;br /&gt;
[[Philips Hue Bridge 2.0, Gateway]]&lt;br /&gt;
&lt;br /&gt;
[[Philips Hue White LED E27 9.5W/827, white]]&lt;br /&gt;
&lt;br /&gt;
== Courses ==&lt;br /&gt;
&lt;br /&gt;
* (nothing here yet)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.phoscon.de/de/conbee/software#zshark&lt;br /&gt;
* https://play.google.com/store/apps/details?id=com.philips.lighting.hue2&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=ConBee_ZigBee_USB_Gateway:_Usage&amp;diff=11598</id>
		<title>ConBee ZigBee USB Gateway: Usage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=ConBee_ZigBee_USB_Gateway:_Usage&amp;diff=11598"/>
		<updated>2023-04-11T08:27:28Z</updated>

		<summary type="html">&lt;p&gt;ARessl: New key added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a description of how to set up and use a [[ConBee ZigBee USB Gateway]] USB stick to sniff out keys of ZigBee end point devices in smart home networks.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Operating system:&lt;br /&gt;
* Ubuntu 18.04&lt;br /&gt;
Applications:&lt;br /&gt;
* Wireshark&lt;br /&gt;
* ZShark (Interface between sniffer and Wireshark, available [https://www.phoscon.de/de/conbee/software#zshark[here]]&lt;br /&gt;
* Smart Home Management App, e.g. Philips Hue for Android, available in the [https://play.google.com/store/apps/details?id=com.philips.lighting.hue2[Google Play Store]]&lt;br /&gt;
Network traffic generating devices, e.g.&lt;br /&gt;
* Philips Hue Bridge&lt;br /&gt;
* Philips Hue White LED&lt;br /&gt;
Sniffing tool&lt;br /&gt;
* ConBee ZigBee USB Gateway&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, it is recommended to be familiar with Wireshark.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
=== Step 0: ZigBee Smart Home Provision ===&lt;br /&gt;
Be sure to have permission to hack into the ZigBee network you want to analyse. Even better, set up your own network to generate some traffic. Minimal requirements: 1 bridge and 1 connected smart home device, such as an LED lamp, preferably with an additional app e.g. for your phone, to control/manage the smart home devices.&lt;br /&gt;
&lt;br /&gt;
=== Step 1: ConBee Setup ===&lt;br /&gt;
Plug ConBee into a USB Port.&lt;br /&gt;
&lt;br /&gt;
==== Install firmware using ZShark ====&lt;br /&gt;
&lt;br /&gt;
Open ZShark. You will see this window:&lt;br /&gt;
&lt;br /&gt;
[[File:ZSharkInst.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;ConBee&amp;quot; and click &amp;quot;Connect&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If the dialog tells you there is &amp;quot;No or wrong firmware found&amp;quot;, and pressing the &amp;quot;Install Firmware&amp;quot; button doesn&#039;t prompt you to the next dialog, make sure no other USB devices are connected to your computer and try again.&lt;br /&gt;
&lt;br /&gt;
If it still doesn&#039;t change, you can also install the firmware manually. For this open a terminal and change into the ZShark-folder (that is where you have installed the application) and run this command (as root):&lt;br /&gt;
 GCFFlasher_internal -d /dev/ttyUSB0 -f /usr/share/zshark/fw/sniffer_v1_0.bin&lt;br /&gt;
where&lt;br /&gt;
# &#039;&#039;/dev/ttyUSB0&#039;&#039; is the path to your device&lt;br /&gt;
# &#039;&#039;/usr/share/zshark/fw/sniffer_v1_0.bin&#039;&#039; is the path to the firmware you want to install&lt;br /&gt;
Both paths are the absolute paths, and they may certainly differ from this solution. Make sure you look up the correct paths on your own system and use them accordingly.&lt;br /&gt;
&lt;br /&gt;
If everything worked fine, you should see a dialogue like this&lt;br /&gt;
&lt;br /&gt;
[[File:ZSharkReady.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
where the path in the COM port identifier shows you the sniffer was detected correctly.&lt;br /&gt;
&lt;br /&gt;
The remote capture IP is to use if you decide to send the captured data to Wireshark on another machine. In my case this was not necessary, as I used Wireshark on the same device.&lt;br /&gt;
&lt;br /&gt;
==== Choose ZigBee channel ====&lt;br /&gt;
&lt;br /&gt;
Channel 11 is the default ZigBee channel, so there you find your traffic unless you configured your network otherwise (in that case you obviously change it to the applicable channel). &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start capturing packets with &amp;quot;Start&amp;quot;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should see the number identified by &amp;quot;Received Packets&amp;quot; in the dialogue to increase immediately.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Wireshark Configuration ===&lt;br /&gt;
Open Wireshark.&lt;br /&gt;
&lt;br /&gt;
==== Select interface ====&lt;br /&gt;
Choose the loopback interface. This is where ZShark sends packets by default.&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkInterfaces.png|border|500px]]&lt;br /&gt;
&lt;br /&gt;
Leave the input field for capture filter empty.&lt;br /&gt;
&lt;br /&gt;
==== Apply display filter ====&lt;br /&gt;
&lt;br /&gt;
 udp.port==17754 &amp;amp;&amp;amp; !icmp&lt;br /&gt;
&lt;br /&gt;
* UDP because our ZigBee devices rely on this protocol&lt;br /&gt;
* Port 17754 is designated for ZigBee packets&lt;br /&gt;
* And we don&#039;t need the ICMP output for our analysis&lt;br /&gt;
It won&#039;t do no harm if you forget to apply the filter, though you will get packets displayed you won&#039;t be interested in. You can also apply it afterwards or add additional filters to easier find specific packets.&lt;br /&gt;
&lt;br /&gt;
==== Add symmetric key of bridge ====&lt;br /&gt;
&lt;br /&gt;
Go to:&lt;br /&gt;
&lt;br /&gt;
Edit &amp;gt; Preferences &amp;gt; Protocols &amp;gt; ZigBee&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkPreferences.png|Border|500px]]&lt;br /&gt;
&lt;br /&gt;
Leave the Security Level in its default value (AES-128 Encryption, 32-bit Integrity Protection). Choose &#039;&#039;Edit&#039;&#039; at &amp;quot;Pre-configured keys&amp;quot; and add the key of your bridge, which in most cases is&lt;br /&gt;
 5A:69:67:42:65:65:41:6C:6C:69:61:6E:63:65:30:39&lt;br /&gt;
or, in this case using the &#039;&#039;&#039;Philips Hue Bridge&#039;&#039;&#039;, is&lt;br /&gt;
 81:42:86:86:5D:C1:C8:B2:C8:CB:C5:2E:5D:65:D1:B8&lt;br /&gt;
as these are mostly universal default keys so that communication in ZigBee networks can be established with lots of different devices from different vendors without further ado.&lt;br /&gt;
&lt;br /&gt;
Another possible key, if the other two do not work as intendend would be &lt;br /&gt;
 9F:55:95:F1:02:57:C8:A4:69:CB:F4:2B:C9:3F:EE:31&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both cases, choose the Byte Order &amp;quot;Normal&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Without the brigde key, you are still able to capture traffic, though you will not get access to additional information, or important insight into the payload respectively. For example, you would not be able to display the end-point device keys, which will be explained in the next step.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Start capturing the packets in Wireshark as well.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Wireshark Network Traffic Analysis ===&lt;br /&gt;
&lt;br /&gt;
Now you will see traffic similar to this:&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkTraffic2.jpg|border|750px]]&lt;br /&gt;
&lt;br /&gt;
It shows there was data broadcasted, unfortunately without any further details. The circled output shows contained data is encrypted.&lt;br /&gt;
&lt;br /&gt;
==== Locate Packet with Symmetric Key ====&lt;br /&gt;
To get hold of an end-point device key in a ZigBee network, look out for specific packets. A device newly entering a network sends its key decrypted until it is established and ingested into the network by the bridge. If you have configured the bridge key correctly, you should see a new device advertising its symmetric key in packets which are tagged as &#039;&#039;&#039;&amp;quot;Device Announcement&amp;quot;&#039;&#039;&#039; in the information column of Wireshark (although there are other packets as well with visible key, this is the first one where this happens).&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkDA.png|border|750px]]&lt;br /&gt;
&lt;br /&gt;
To simulate a device entering into a network, you have to reset it. With the light bulb, I simply disconnected it from its socket and re-attached it. Switching the light on and off won&#039;t help, it has to be taken off the electricity completely.&lt;br /&gt;
&lt;br /&gt;
==== Add end-point device key in Wireshark ====&lt;br /&gt;
Go to:&lt;br /&gt;
&lt;br /&gt;
Edit &amp;gt; Preferences &amp;gt; Protocols &amp;gt; ZigBee&lt;br /&gt;
&lt;br /&gt;
and add the key with Byte Order &amp;quot;Normal&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
From this point on, you are able to see all information, as you can adequatly decrypt it.&lt;br /&gt;
&lt;br /&gt;
[[File:WiresharkTrafficDecr.png|Border|750px]]&lt;br /&gt;
&lt;br /&gt;
This is the same packet as the first one in this section, only with added key. As you can see, the payload is now clearly visible, and it shows detailed information about the transported commands.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[ConBee ZigBee USB Gateway]]&lt;br /&gt;
&lt;br /&gt;
[[Philips Hue Bridge 2.0, Gateway]]&lt;br /&gt;
&lt;br /&gt;
[[Philips Hue White LED E27 9.5W/827, white]]&lt;br /&gt;
&lt;br /&gt;
== Courses ==&lt;br /&gt;
&lt;br /&gt;
* (nothing here yet)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.phoscon.de/de/conbee/software#zshark&lt;br /&gt;
* https://play.google.com/store/apps/details?id=com.philips.lighting.hue2&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11583</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11583"/>
		<updated>2023-03-23T12:48:21Z</updated>

		<summary type="html">&lt;p&gt;ARessl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* Audio Players&lt;br /&gt;
* Projectors&lt;br /&gt;
* Air Conditioners&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
&lt;br /&gt;
Applications are for a more special use of the Flipper Hardware for example to fetch and decode the signal from a weather station or use the PicoPass NFC protocol.&lt;br /&gt;
Another example would be the Bluetooth remote, which can control devices using the Bluetooth standard.&lt;br /&gt;
Furthermore, there is also a pre-installed game on the device, namely Snake.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11582</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11582"/>
		<updated>2023-03-23T12:48:11Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Applications */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* Audio Players&lt;br /&gt;
* Projectors&lt;br /&gt;
* Air Conditioners&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
&lt;br /&gt;
Applications are for a more special use of the Flipper Hardware for example to fetch and decode the signal from a weather station or use the PicoPass NFC protocol.&lt;br /&gt;
Another example would be the Bluetooth remote, which can control devices using the Bluetooth standard.&lt;br /&gt;
Furthermore, there is also a pre-installed game on the device, namely Snake.&lt;br /&gt;
&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11581</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11581"/>
		<updated>2023-03-23T12:44:29Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Infrared */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* Audio Players&lt;br /&gt;
* Projectors&lt;br /&gt;
* Air Conditioners&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11537</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11537"/>
		<updated>2023-02-27T12:13:55Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* GPIO */  added sources&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins. An example project would be the [https://www.thedrive.com/news/hacker-uncovers-how-to-turn-traffic-lights-green-with-flipper-zero Traffic-Controller], where special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_GPIO.png&amp;diff=11536</id>
		<title>File:Flipper GPIO.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_GPIO.png&amp;diff=11536"/>
		<updated>2023-02-27T11:57:02Z</updated>

		<summary type="html">&lt;p&gt;ARessl: GPIO Pin layout of the Flipper Zero&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
GPIO Pin layout of the Flipper Zero&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11535</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11535"/>
		<updated>2023-02-27T11:56:01Z</updated>

		<summary type="html">&lt;p&gt;ARessl: GPIO Pins picture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the 18 GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins, for example, special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
&lt;br /&gt;
[[File:Flipper_GPIO.png|400px||GPIO Pin layout]]&lt;br /&gt;
&lt;br /&gt;
Detailed information about the pins can be found on the [https://docs.flipperzero.one/gpio-and-modules Flipper Zero GPIO documentation website].&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11534</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11534"/>
		<updated>2023-02-27T11:22:19Z</updated>

		<summary type="html">&lt;p&gt;ARessl: GPIO&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
There are various modules that can be added to the Flipper Zero using the GPIO Pins on top of the device. An example for this would be a WiFi module to enable the Flipper Zero to connect to a nearby WiFi network. It is also possible to create your own projects with the GPIO pins, for example, special LEDs were attached to the Flipper Zero, which, when flashed at around 14 Hertz, cause traffic lights to turn green, as they are made to believe that an ambulance is approaching them.&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11533</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11533"/>
		<updated>2023-02-27T11:10:30Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Bad USB addition&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems, some are also used for temperature and humidity measurements. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11532</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11532"/>
		<updated>2023-02-27T10:44:00Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Infrared */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
With the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11531</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11531"/>
		<updated>2023-02-27T10:43:47Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* U2F */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11530</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11530"/>
		<updated>2023-02-27T10:43:25Z</updated>

		<summary type="html">&lt;p&gt;ARessl: iButton&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
The Flipper Zero also supports iButtons which is a so called 1-Wire communication protocol. They are mostly used for storing cryptographic keys or serial numbers and for access control systems. Flipper Zero is able to read, write and emulate access control keys. Supported protocols are Dallas, Cyfral and Metakom.&lt;br /&gt;
&lt;br /&gt;
In Austria they are not as common as in other countries, for example iButtons are used as access control for buildings in america or to authenticate cashiers in italian grocery shops.&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11529</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11529"/>
		<updated>2023-02-27T10:10:20Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Bad USB steps&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
# First write a fitting payload for the target using the Rubber Ducky Scripting Language&lt;br /&gt;
# Copy the payload over onto the SD Card into the folder &amp;quot;badusb&amp;quot;, either using qFlipper oder the Flipper Mobile App.&lt;br /&gt;
# Plug the Flipper Zero into a PC using the USB-C cable&lt;br /&gt;
# Open the desired payload inside the Bad USB menu and press the OK button to start it&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11528</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11528"/>
		<updated>2023-02-27T09:42:14Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added disclaimers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
&lt;br /&gt;
Currently the Flipper Zero only support the US keyboard layout, this may change in the future but for the time being it is only possible to emulate inputs using the US layout.&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11527</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11527"/>
		<updated>2023-02-27T09:39:37Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Bad USB&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
The Flipper Zero can act as a Bad USB device, similar to a Rubber Ducky (LINK), it also utilizes the same scripting language (Rubber Ducky Scripting Language). This allows the Flipper Zero to act as a Human Interface Device (HID), like a keyboard for example).&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11526</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11526"/>
		<updated>2023-02-27T09:37:10Z</updated>

		<summary type="html">&lt;p&gt;ARessl: U2F&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
It is possible to use the Flipper Zero as a USB universal 2nd-factor (U2F) authentication token, to use as a second authentication factor when logging into accounts online.&lt;br /&gt;
It should be mentioned that the Flipper Zero website has a warning stating that for critical accounts or applications a special hardware key should be utilizes instead of the Flipper Zero because the Flipper Zero only offers the functionality using software. To use the Flipper Zero as a 2nd-factor token the following steps must be performed:&lt;br /&gt;
&lt;br /&gt;
# First connect the Flipper Zero with a PC or Laptop, if the qFlipper software is active close it.&lt;br /&gt;
# Next up open the U2F menu of the Flipper Zero, the screen should display &amp;quot;connected&amp;quot;&lt;br /&gt;
# In the web account where the two-factor authentication should be activated, for example Google or Github, follow the steps as instructed by the services until you are able to select &amp;quot;security key&amp;quot;, or something similar, as a 2nd-factor authentication.&lt;br /&gt;
# On the website choose &amp;quot;security key&amp;quot; as the 2nd-factor authentication &lt;br /&gt;
# Lastly the Flipper Zero shows &amp;quot;Press OK to register&amp;quot;, after clicking &amp;quot;OK&amp;quot; the registration of the Flipper Zero as a security key is accomplished.&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11525</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11525"/>
		<updated>2023-02-27T09:27:22Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added reference&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.flipperzero.one/&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11524</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11524"/>
		<updated>2023-02-27T09:25:42Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Infrared */ typo and explanations&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once thus sending the signal towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category. The Flipper Zero than saves the signal and it can be emulated when needed.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11523</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11523"/>
		<updated>2023-02-27T09:24:24Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Infrared */ added points&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
* TVs&lt;br /&gt;
* HVACs&lt;br /&gt;
* Beamers&lt;br /&gt;
* Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a device remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category.&lt;br /&gt;
&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11522</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11522"/>
		<updated>2023-02-27T08:56:55Z</updated>

		<summary type="html">&lt;p&gt;ARessl: RFID section added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
With the 125 kHz RFID module the reading, saving, emulating and writing of LF RFID cards is possible. This includes animal chips, access control systems and supply chain tracking systems. A big difference with NFC is the lack of security.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the RFID category.&lt;br /&gt;
# Next hold the Flipper Zero close to the chip itself, for example an animal chip.&lt;br /&gt;
# The Flipper Zero will automatically start reading the data on the chip and display it accordingly.&lt;br /&gt;
# This data can then be saved and used for later emulation.&lt;br /&gt;
&lt;br /&gt;
ASK and PSK chips are supported by the Flipper Zero.&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving, emulating and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
- TVs&lt;br /&gt;
- HVACs&lt;br /&gt;
- Beamers&lt;br /&gt;
- Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a device remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category.&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11521</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11521"/>
		<updated>2023-02-27T08:11:43Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Infrared added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
Withe the Infrared sender and receiver it is possible to send well-known Infrared signals or learn new more unique signals to later on emulate them.&lt;br /&gt;
Examples for well-known remote signals that are already integrated into the Flipper Zero include:&lt;br /&gt;
&lt;br /&gt;
- TVs&lt;br /&gt;
- HVACs&lt;br /&gt;
- Beamers&lt;br /&gt;
- Ventilators&lt;br /&gt;
&lt;br /&gt;
If the goal is to turn on a TV the Flipper Zero bruteforces the correct signal by looping through every known TV &amp;quot;on&amp;quot; signal it has stored.&lt;br /&gt;
If a device remote signal is not yet known to the Flipper Zero it can be easily added by pressing the original remote once towards the Flipper Zero while the &amp;quot;learning mode&amp;quot; is active. This can be achieved by starting the tool &amp;quot;Learn New Remote&amp;quot; inside the Infrared category.&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11520</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11520"/>
		<updated>2023-02-27T08:04:15Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* NFC */ typo fixed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, to toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11519</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11519"/>
		<updated>2023-02-27T07:50:41Z</updated>

		<summary type="html">&lt;p&gt;ARessl: NFC section added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz module various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
With the NFC module the reading, saving and writing of 13.56 MHz NFC signals is possible. This ranges from key cards, like hotel entry cards and door openers, or toys that utilize NFC signals.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Read&amp;quot; tool inside the NFC category.&lt;br /&gt;
# Next hold the Flipper Zero close next to the desired key card.&lt;br /&gt;
# As soon as the Flipper Zero detects the card it will start decrypting the sectors of it.&lt;br /&gt;
# If well-known keys are used and the key card can be decrypted it is possible to save the key card for later emulation or writing onto a blank NFC card.&lt;br /&gt;
&lt;br /&gt;
With this various hotel key cards can be easily copied and used. The success of such an attack is based on the used keys to encrypt the sectors of the NFC Cards in use. If the Flipper Zero knows the keys, e.g. the NFC key card utilizes well-known keys for encryption, a successful decryption and cloning of the NFC key card is almost guaranteed. If the key card uses a special token for authentication by generating a unique code every time the card is read, it is not possible to clone the card (or atleast not with the Flipper Zero). An example for this would be the NFC key card for a Tesla vehicle.&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11518</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11518"/>
		<updated>2023-02-27T07:19:55Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Sub-GHz */ missing words and changing words&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz Modul various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage door remote signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage remote.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door remote to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door remote again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door remotes. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door remotes can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11517</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11517"/>
		<updated>2023-02-27T07:18:16Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added Sub-GHz attack and explaination&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
With the Sub-GHz Modul various attacks up to 50 meters are possible in the following bands, 300-348 MHz, 387-464 MHz, and 779-928 MHz.&lt;br /&gt;
&lt;br /&gt;
A basic attack in this regard would be the cloning of a garage opener signal, to freely open and close a garage door.&lt;br /&gt;
For this to work the Flipper Zero first needs to be configured to the corresponding band of the original garage opener.&lt;br /&gt;
&lt;br /&gt;
# First open the &amp;quot;Frequency Analyzer&amp;quot; tool inside the Sub-GHz category.&lt;br /&gt;
# Press the garage door opener to send out a signal.&lt;br /&gt;
# The Flipper Zero will automatically display the frequency of the captured signal.&lt;br /&gt;
# Next go back and open the &amp;quot;Read&amp;quot; tool&lt;br /&gt;
# Open the config with the *left* button and set the appropriate frequency band from the captured signal&lt;br /&gt;
# Press the garage door opener again and if the Flipper Zero supports the protocol it will be possible to save the opening signal&lt;br /&gt;
# If the Flipper Zero does not detect a valid signal, try to modify the modulation in the settings of the &amp;quot;Read&amp;quot; tool or it could be possible that the Flipper Zero does not yet support the protocol of the garage door.&lt;br /&gt;
&lt;br /&gt;
After a signal is captured it is possible to either save or discard it. Saved signals can be triggered via the &amp;quot;Saved&amp;quot; menu. Using this it is possible to create clones of existing garage door openers. This is just a basic attack, but it shows the capabilities of the Flipper Zero very clearly, not only garage door openers can be cloned and utilized, almost anything inside the supported range spectrum can be easily copied and used accordingly. Only difference in this regards would be if the devices use a so called &amp;quot;rolling code&amp;quot;. If rolling codes are used a signal can be read and cloned but is useless, as the underlying &amp;quot;code&amp;quot; is unknown. The most probable outcome copying such as signal and resending it would be that the original sender gets blocked by the garage door or the corresponding receiver.&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11507</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11507"/>
		<updated>2023-02-20T16:02:47Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added Use Case categories&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;br /&gt;
&lt;br /&gt;
The use cases are divided into the corresponding categories of the Flipper Zero.&lt;br /&gt;
&lt;br /&gt;
=== Sub-GHz ===&lt;br /&gt;
=== 125 kHz RFID ===&lt;br /&gt;
=== NFC ===&lt;br /&gt;
=== Infrared ===&lt;br /&gt;
=== GPIO ===&lt;br /&gt;
=== iButton ===&lt;br /&gt;
=== Bad USB ===&lt;br /&gt;
=== U2F ===&lt;br /&gt;
=== Applications ===&lt;br /&gt;
=== Settings ===&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11506</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11506"/>
		<updated>2023-02-20T15:50:02Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added use case section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
As already mentioned there are many different use cases for the Flipper Zero, such as Sub-GHz signal analyzing and cloning, NFC spoofing or controlling of Infrared devices.&lt;br /&gt;
In this section some examples for different use cases will be given as well as a basic explanation of how various attacks can be performed.&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11488</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11488"/>
		<updated>2023-02-10T10:52:08Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added update pictures to the firmware update section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
[[File:qFlipper_update.png|400px||qFlipper showing pending update]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;Next click the Update button to initiate the update process, this process can take a few minutes.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:qFlipper_update_progress.png|400px||qFlipper update progess]]&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&amp;lt;/li&amp;gt;&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:QFlipper_update_progress.png&amp;diff=11487</id>
		<title>File:QFlipper update progress.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:QFlipper_update_progress.png&amp;diff=11487"/>
		<updated>2023-02-10T10:43:46Z</updated>

		<summary type="html">&lt;p&gt;ARessl: qflipper update progress&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
qflipper update progress&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:QFlipper_update.png&amp;diff=11486</id>
		<title>File:QFlipper update.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:QFlipper_update.png&amp;diff=11486"/>
		<updated>2023-02-10T10:42:54Z</updated>

		<summary type="html">&lt;p&gt;ARessl: qflipper update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
qflipper update&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11485</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11485"/>
		<updated>2023-02-10T10:41:56Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added update description&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back button&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Firmware Update ===&lt;br /&gt;
To update the device either connect the Flipper Zero to a PC via a USB-C cable or connect it to a mobile phone using Bluetooth and use the &amp;quot;Flipper&amp;quot; app. In this guide a PC is used for the firmware update.&lt;br /&gt;
&lt;br /&gt;
# First download qFlipper from the official Flipper Zero website https://flipperzero.one/update&lt;br /&gt;
# After installation start the application and connect the Flipper Zero, it should show the connected device in the GUI.&lt;br /&gt;
BILD&lt;br /&gt;
# Next click the Update button to initiate the update process, this process can take a few minutes.&lt;br /&gt;
BILD&lt;br /&gt;
# After successfully updating the device, the qFlipper software shows the new version number and the Flipper Zero displays &amp;quot;Firmware update success&amp;quot;. Now the device is ready to be used again.&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11484</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11484"/>
		<updated>2023-02-10T10:30:23Z</updated>

		<summary type="html">&lt;p&gt;ARessl: added detail side&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front]]&lt;br /&gt;
[[File:Flipper_detail_side.png |thumb|right|400px||Flipper Zero Side]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back key&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11483</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11483"/>
		<updated>2023-02-10T10:26:24Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added picture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:Flipper_detail_front.png |thumb|right|400px||Flipper Zero Front &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back key&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_detail_side.png&amp;diff=11482</id>
		<title>File:Flipper detail side.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_detail_side.png&amp;diff=11482"/>
		<updated>2023-02-10T10:24:41Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Flipper zero side detail&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Flipper zero side detail&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_detail_front.png&amp;diff=11481</id>
		<title>File:Flipper detail front.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Flipper_detail_front.png&amp;diff=11481"/>
		<updated>2023-02-10T10:23:54Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Front of flipper zero in detail&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Front of flipper zero in detail&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11480</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11480"/>
		<updated>2023-02-10T10:17:30Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Summary and setup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
The Flipper Zero is a gadget for penetration testers, system administrators and tech enthusiasts created by Flipper Devices Inc. The device allows capturing and transmitting of various Sub-GHz signals, such as Garage Openers or NFC chips, as-well as Infrared signals. Furthermore the device can be used as a Bad USB Stick and offers iButton capabilities. &lt;br /&gt;
Thanks to its small form factor it is a perfect device for covert operations. &lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Flipper Zero ===&lt;br /&gt;
&lt;br /&gt;
# Open the box containing the Flipper Zero and boot it by holding down the back key&lt;br /&gt;
# To use the full potential of the Flipper Zero an Micro SD-Card is needed. Insert it into the right bottom of the flipper with the pins of the SD-Card facing upwards.&lt;br /&gt;
# After successful installation of the Micro SD-Card, a little SD-Card symbol appears on the top left of the Flipper Zero GUI.&lt;br /&gt;
# Finally for the best experience the Firmware should be updated, this point is explained in more detail in the section &amp;quot;Firmware Update&amp;quot;.&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11058</id>
		<title>Flipper Zero</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Flipper_Zero&amp;diff=11058"/>
		<updated>2023-01-09T13:18:19Z</updated>

		<summary type="html">&lt;p&gt;ARessl: WIP Wiki created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WIP&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=SQL_Injection&amp;diff=10614</id>
		<title>SQL Injection</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=SQL_Injection&amp;diff=10614"/>
		<updated>2023-01-05T10:23:33Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Changed types of sql queries to categories and added the 3 categories aswell as different types of attacks for every category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== SQL Injection == &lt;br /&gt;
&lt;br /&gt;
SQL Injection is a vulnerability, which can be found in applications, especially web applications. According to the List of OWASP Top 10 Web Application Security Risks Injections are still on top in 2020. SQL Injections - which are a specific type of Injections - are the most common way for attackers to either fetch sensitive data from databases or harm a system in its dependability or even causing non-availablity of the same. Such vulnerabilities become possible when input data is concatenated to SQL queries in conjuction with the absence of data sanitation. &lt;br /&gt;
== Functionality ==&lt;br /&gt;
&lt;br /&gt;
This vulnerability can only arise when there is a lack of data sanitation. This implies the existence of data input interfaces, whether an input field or a HTTP header field. However when SQL is used in code at application layer it is often concatenated with input data from presentation layer. The combination of unsanitized input and SQL code concatenation with data input is very bad, because this leads to perfect SQL Injections. Input interfaces can be distinguished between: &lt;br /&gt;
&lt;br /&gt;
# Userinput can be every field in the User Interface (UI) where a user can input data. &lt;br /&gt;
# Cookies can be altered, because they reside on client-side which enables the user to inject malicious code into it.&lt;br /&gt;
# HTTP Header are also a type of input which can contain malicious SQL code.&lt;br /&gt;
&lt;br /&gt;
All these entities contain data which is created on the client-side and also can be altered on the same. This is why the first step when any of this data arrives on the server is sanitation and validation. The latter can be partly done already on client-side. Thus, defining HTML attributes, which force user to use specific type or validating with JS, which can be used to apply regular expressions (Regex) on inputs, is essential.&lt;br /&gt;
&lt;br /&gt;
=== Direct attack method ===&lt;br /&gt;
When input data, therefore malicious SQL code, is directly concatenated to the SQL code in the application tier it is called Direct attack method. This way an authentication of a web-page can be bypassed. &lt;br /&gt;
&lt;br /&gt;
=== Indirect attack method ===&lt;br /&gt;
In contrast to direct attack the indirect attack is when the SQL statement is terminated and arbitrary statements are attached to it. The end is then marked as a comment with using SQL specific commenting syntax, a double dash &#039;&#039;--&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Either way the malicious code is executed at the time it is received by the database. &lt;br /&gt;
&lt;br /&gt;
An attack could look like this:&lt;br /&gt;
&lt;br /&gt;
=== Case 1 ===&lt;br /&gt;
In the business logic of the application, a query is used to retrieve the data of an user based on username and password. The username and password are filled in by the user via a web form. The input goes directly into the query.&lt;br /&gt;
&lt;br /&gt;
 SELECT * FROM Users WHERE name =&#039;userName&#039; and password=&#039;password&#039;;&lt;br /&gt;
&lt;br /&gt;
Suppose the attacker gives admin as the username and &#039; or &#039;1&#039; = &#039;1&#039; as a password. That results in the following query that will be evaluated by the database:&lt;br /&gt;
 SELECT * FROM Users WHERE name =&#039;admin&#039; and password=&#039;&#039; or &#039;1&#039;=&#039;1&#039;;&lt;br /&gt;
&lt;br /&gt;
The above SQL query is valid and returns all tuples from the Users relation. By adding the OR condition &#039;1&#039; = &#039;1&#039;, the WHERE clause is always evaluated as true. The query then corresponds to:&lt;br /&gt;
 SELECT * FROM Users;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Case 2 ===&lt;br /&gt;
Furthermore, several SQL statements can be executed simultaneously on many database servers by separating them with semicolons. The attacker can thus insert additional commands, for example, to delete a relation with a call.&lt;br /&gt;
&lt;br /&gt;
The attacker enters the following in the password field:&lt;br /&gt;
 &lt;br /&gt;
 &#039; or &#039;1&#039;=&#039;1&#039;; DROP TABLE Users; SELECT * FROM info WHERE &#039;1&#039; = &#039;1&lt;br /&gt;
&lt;br /&gt;
This results in the following queries:&lt;br /&gt;
 SELECT * FROM Users WHERE name =&#039;admin&#039; and password=&#039; &#039;or &#039;1&#039;=&#039;1&#039;; DROP TABLE Users; SELECT * FROM info WHERE &#039;1&#039; = &#039;1&#039;&lt;br /&gt;
&lt;br /&gt;
When the database server processes these two queries, it first returns all data records from the Users relation and then deletes or removes the entire Users table.&lt;br /&gt;
&lt;br /&gt;
== Categories of SQL attacks==&lt;br /&gt;
There are a number of SQL injection attacks that occur in different situations.&lt;br /&gt;
Depending on the target of the attacker, the techniques can be used separately as well as together. &lt;br /&gt;
First lets take a look at the different categories of SQL attacks:&lt;br /&gt;
&lt;br /&gt;
=== In-Band SQL Injection ===&lt;br /&gt;
Most attacks fall under in-band SQL injections. In-band means that the attacker can carry out both attacks and retrieve information via a single communication channel. This means that the results are returned on the same medium as the attack itself was executed.&lt;br /&gt;
&lt;br /&gt;
Known examples for this category would be:&lt;br /&gt;
&lt;br /&gt;
==== Tautologies ====&lt;br /&gt;
The goal of the Tautologies attack is to find injectable parameters in the application to bypass authentication and initially extract data.&lt;br /&gt;
The basic idea here is to always set the where clause in the SQL statement to true so that the condition is ignored. The most common tautology is or 1 = 1. By concatenating the operator or and 1 = 1, another condition is set that is always true, so that the result of the entire condition is true. An example of this can be found in the previous chapter.&lt;br /&gt;
&lt;br /&gt;
==== Error Based ====&lt;br /&gt;
Error based SQL Injection get their information from error messages. This means that an SQL statement is manipulated in such a way that an error message is thrown by the server. This error message can then be evaluated and thus reveal the type of database and the vulnerability to SQL injections.&lt;br /&gt;
&lt;br /&gt;
==== Union Based ====&lt;br /&gt;
&lt;br /&gt;
In the case of a UNION query attack, the keyword &#039;UNION&#039; is inserted in the input in order to retrieve data from other relations in the database. UNION enables the execution of several independent SQL queries in addition to the main instruction. The results of the further queries are appended to the results of the legitimate SQL query.&lt;br /&gt;
&lt;br /&gt;
As a prerequisite, the attacker must have information about the database in order to extract data using UNION. These include e.g. Information about table names and their respective attributes, with which the further queries can be created and linked to the original statement. Furthermore, the individual queries must return the same number of columns and the data types of the attributes must be compatible between the individual queries.&lt;br /&gt;
The attacker can use the ORDER BY clause to derive the number of columns from the results. The clause is added to the statement and the column index is increased until an error message occurs. The columns in a relation can be specified in the ORDER BY clause by an index, so you do not need to know the column names.&lt;br /&gt;
&lt;br /&gt;
Example of a UNION query attack:&lt;br /&gt;
 SELECT accounts FROM Users WHERE username=&#039;&#039;username&#039;&#039; and password=&#039;&#039;password&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The attacker extends the legitimate instruction by entering the following in the password field:&lt;br /&gt;
&lt;br /&gt;
 &#039; &#039;UNION SELECT cardNo FROM Credit Cards WHERE acctNo=123456 -- &#039;,&lt;br /&gt;
&lt;br /&gt;
This results in the following query:&lt;br /&gt;
&lt;br /&gt;
SELECT accounts FROM users WHERE login=&#039; &#039; UNION SELECT cardNo from CreditCards&lt;br /&gt;
where acctNo=123456&lt;br /&gt;
&lt;br /&gt;
The first statement returns zero. However, the second query is performed and returns the card number from the account number 123456.&lt;br /&gt;
&lt;br /&gt;
=== Blind SQL Injection ===&lt;br /&gt;
Blind SQL injections may not result in an immediate response from the server. The injected commands are processed by the server and do not throw an error message, only the behavior of the server afterwards allows conclusions to be drawn about the execution and results of these, this leads to their nickname &amp;quot;Blind SQL Injections&amp;quot;. The big disadvantage of these attack methods is the time required and the reliability. &lt;br /&gt;
&lt;br /&gt;
Two types of Blind SQL Injections exist:&lt;br /&gt;
&lt;br /&gt;
==== Boolean Based ====&lt;br /&gt;
Boolean based means that boolean queries are used to get different answers from the server.&lt;br /&gt;
Depending on the answer, you know that there is a certain UserId or a certain user has administrator rights.&lt;br /&gt;
&lt;br /&gt;
For example it is assumed that a website retrieves its user data from the database using a UserId. The ID is transferred via the URL:&lt;br /&gt;
To check whether an SQL injection is possible, the following condition (and 1 = 2) is added.&lt;br /&gt;
&lt;br /&gt;
 http://newspaper.com/items.php?id=2 and 1=2&lt;br /&gt;
&lt;br /&gt;
The actual SQL query that is executed is:&lt;br /&gt;
&lt;br /&gt;
 SELECT title, description, body FROM items WHERE ID = 2 and 1=2&lt;br /&gt;
&lt;br /&gt;
In order for this assertion to be confirmed, the attacker builds a condition that returns true. This would be, for example, and 1 = 1, since 1 = 1 is always correct:&lt;br /&gt;
&lt;br /&gt;
 http://newspaper.com/items.php?id=2 and 1=1&lt;br /&gt;
&lt;br /&gt;
==== Time Based ====&lt;br /&gt;
In time-based attacks, the attacker inserts a query after the actual request, e.g. whether the system username is admin. If yes, the server should wait 15 seconds before returning the answer.&lt;br /&gt;
This shows that both boolean based and time based attacks are very good at revealing sensitive information about the server without sending any sensitive data around, because in the end the server responds with a normal user query, only the response times change. &lt;br /&gt;
&lt;br /&gt;
=== Out-of-Band SQL Injection ===&lt;br /&gt;
Out-of-band SQL injections use a different information channel than the actual attack vector, hence their name Out-of-band SQL injections. However, these are rarely used nowadays because special functions must be activated on the database server.&lt;br /&gt;
For example, it must be possible to set up a DNS query or an HTTP request within the SQL query.&lt;br /&gt;
A well-known example of out-of-band SQL injections would be a DNS query to a server controlled by the attacker, in which case the information is packaged as a URL and sent to the attacker as a DNS query.&lt;br /&gt;
&lt;br /&gt;
== Prevention ==&lt;br /&gt;
The countermeasures for SQL injection, apart from the type of attack, are mainly the same. The root cause of SQL injections is the lack of input validation. Therefore, the simple solution to address these vulnerabilities is to use appropriate defensive coding. If you are working with user input that is initially used in SQL queries, it should be passed to the query via parameters and validated using defined regular expressions, also known as input whitelisting.&lt;br /&gt;
&lt;br /&gt;
* Check the input type by parameterizing &lt;br /&gt;
* Positive pattern comparison&lt;br /&gt;
* Filter input data&lt;br /&gt;
* Avoid error messages&lt;br /&gt;
* Least privilege&lt;br /&gt;
* Cloudflare or other third party services&lt;br /&gt;
&lt;br /&gt;
== Practice ==&lt;br /&gt;
&lt;br /&gt;
=== Damn Vulnerable Web App (DVWA) ===&lt;br /&gt;
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and aid teachers/students to teach/learn web application security in a class room environment.&lt;br /&gt;
&lt;br /&gt;
To Install the DvWA project follow the following page:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/ethicalhack3r/DVWA&lt;br /&gt;
&lt;br /&gt;
Installation: &lt;br /&gt;
&lt;br /&gt;
=== Burp suite ===&lt;br /&gt;
Burp Suite is a tool for performing penetration testing of web applications. With the Burp Suite, administrators can intercept and manipulate HTTP / HTTPS traffic to web applications before it is sent to the server. This enables security gaps in web applications to be discovered quickly and effectively.&lt;br /&gt;
&lt;br /&gt;
To start intercepting web traffic, you have to set the proxy of the browser to 127.0.0.1:8080. The proxy listener is by default configured on 127.0.0.1:8080 in burp suite.&lt;br /&gt;
&lt;br /&gt;
[[File:Proxy 4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the DVWA project move to &amp;quot;SQL Injection&amp;quot; and type in the following input as User ID:&lt;br /&gt;
&lt;br /&gt;
 1&#039; or 1=1&lt;br /&gt;
&lt;br /&gt;
This will deliver all users stored in the database as the condition is always true.&lt;br /&gt;
&lt;br /&gt;
[[File:demo2.png]] &lt;br /&gt;
&lt;br /&gt;
Afterwards when switching to burp suite tab &amp;quot;Proxy&amp;quot; -&amp;gt; History you will see that the request has been captured. Within the request the &amp;quot;PHPSESSID&amp;quot; will be included as part of the cookie. &lt;br /&gt;
&lt;br /&gt;
[[File:demo3.png]] &lt;br /&gt;
&lt;br /&gt;
With this sessionid it is possible to connect to database and get further information with the help of a third tool called &amp;quot;sqlmap&amp;quot;. To get the databases within DBMS system use the following command:&lt;br /&gt;
&lt;br /&gt;
 sqlmap -u &amp;quot;http://localhost/DVWA/vulnerabilities/sqli/?id=1&amp;amp;Submit=Submit&amp;quot; &amp;quot;--cookie=security=&amp;lt;e.g. medium&amp;gt;; PHPSESSID=&amp;lt;SessionID&amp;gt;&amp;quot; --dbs&lt;br /&gt;
&lt;br /&gt;
[[File:demo4.png]]&lt;br /&gt;
&lt;br /&gt;
To retrieve the tables of a specific database for example dvwa database. Replace the &amp;quot;--dbs&amp;quot; option with the &amp;quot;--tables&amp;quot; and &amp;quot;-D&amp;quot; option and define the database.&lt;br /&gt;
&lt;br /&gt;
 sqlmap -u &amp;quot;http://localhost/DVWA/vulnerabilities/sqli/?id=1&amp;amp;Submit=Submit&amp;quot; &amp;quot;--cookie=security=low; PHPSESSID=t664gnfopfo6kem1nkon3a6kvb&amp;quot; --tables -D dvwa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:demo5.png]]&lt;br /&gt;
&lt;br /&gt;
Furthermore, it is possible to see the database schema from database &amp;quot;dvwa&amp;quot; as well by executing the following command:&lt;br /&gt;
&lt;br /&gt;
 sqlmap -u &amp;quot;http://localhost/DVWA/vulnerabilities/sqli/?id=1&amp;amp;Submit=Submit&amp;quot; &amp;quot;--cookie=security=low; PHPSESSID=t664gnfopfo6kem1nkon3a6kvb&amp;quot; --columns -D dvwa -T users&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:demo6.png]]&lt;br /&gt;
&lt;br /&gt;
At the end to get to the sensitive data the attacker will execute the command:&lt;br /&gt;
 &lt;br /&gt;
 sqlmap -u &amp;quot;http://localhost/DVWA/vulnerabilities/sqli/?id=1&amp;amp;Submit=Submit&amp;quot; &amp;quot;--cookie=security=low; PHPSESSID=t664gnfopfo6kem1nkon3a6kvb&amp;quot; --dump -D dvwa -T users&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:demo7.png]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://ieeexplore.ieee.org/document/6400112&lt;br /&gt;
* https://pdfs.semanticscholar.org/81a5/02b52485e52713ccab6d260f15871c2acdcb.pdf/&lt;br /&gt;
* https://ieeexplore.ieee.org/abstract/document/6396096&lt;br /&gt;
* https://www.dbcybertech.com/pdf/sql-injection-detection-web-environment.pdf&lt;br /&gt;
* https://www.cisecurity.org/wp-content/uploads/2017/05/SQL-Injection-White-Paper2.pdf&lt;br /&gt;
* https://info.sucuri.net/hubfs/images/owasp-ebook-2019/sucuri-ebook-OWASP-top-10.pdf&lt;br /&gt;
* http://www.dvwa.co.uk/&lt;br /&gt;
* https://owasp.org/www-project-top-ten/&lt;br /&gt;
&lt;br /&gt;
[[Category:Basic]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_LAN_Turtle&amp;diff=10450</id>
		<title>Hak5 LAN Turtle</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_LAN_Turtle&amp;diff=10450"/>
		<updated>2022-12-12T14:58:15Z</updated>

		<summary type="html">&lt;p&gt;ARessl: /* Setting up the LAN Turtle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:LANTurtle.jpg |thumb|right|400px||LAN Turtle and Field Guide &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
The LAN turtle is a tool for penetration testers and system administrators disguised as a simple USB Ethernet adapter. It provides possibilities to perform remote access, man-in-the-middle and information gathering attacks. These functions are provided by the turtle modules which are preinstalled on the LAN turtle. The modules are based on the OpenWRT platform which allow users to add customized modules. The turtle itself is covert by a generic USB to Ethernet adapter and can therefore be placed unnoticed in IT infrastructures.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the LAN Turtle ===&lt;br /&gt;
&lt;br /&gt;
# Plug the LAN turtle into one of the USB ports of your computer.&lt;br /&gt;
# Your computer will get an 172.16.84.x address as soon as the startup sequence of the turtle finished. If not, then you have to statically configure an IP out of the 172.16.84.0/24 range.&lt;br /&gt;
# Connect to the turtle with &amp;lt;code&amp;gt;ssh root@172.16.84.1&amp;lt;/code&amp;gt; and enter the password &amp;lt;code&amp;gt;elvisLab&amp;lt;/code&amp;gt; (default password after factory reset is &amp;lt;code&amp;gt;sh3llz&amp;lt;/code&amp;gt;)&lt;br /&gt;
# The simplistic graphical shell interface will prompt you to change the password but the old one is also allowed.&lt;br /&gt;
# The LAN turtle can be configured and modules can be installed within the interface. &lt;br /&gt;
# If you end the interface you will be greeted with an normal Linux shell but you can open it again with the &amp;lt;code&amp;gt;turtle&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
=== Updating firmware (optional) ===&lt;br /&gt;
To ensure the best performance and compatability you should update the firmware regularly. This requires internet connection.&lt;br /&gt;
&lt;br /&gt;
# Select &amp;lt;code&amp;gt;Config&amp;lt;/code&amp;gt; in the Main Menu and press select.&lt;br /&gt;
# Go to &amp;lt;code&amp;gt;Check for updates&amp;lt;/code&amp;gt; and press select to start the update process.&lt;br /&gt;
# Wait till the update finishes.&lt;br /&gt;
&lt;br /&gt;
=== Factory Reset (optional)===&lt;br /&gt;
In the extreme case that a LAN Turtle has become permanently inaccessible or inoperative, there is a quick method for recovery using a special web interface.&lt;br /&gt;
# Download the latest LAN Turtle factory image from the [https://downloads.hak5.org/ official download center]. Note: Choose the factory recovery image.&lt;br /&gt;
# Open the LAN Turtle carefully. There are 2 screws under the sticker.&lt;br /&gt;
# Now you need to find the reset button/jumper contact. You can find a video on how to locate [https://www.youtube.com/watch?v=ubNin_79wxE here].&lt;br /&gt;
# Hold down the button/jumper while you&#039;re plugging the LAN Turtle in your PC and keep holding it for 5 more seconds.&lt;br /&gt;
# Go to http://192.168.1.1 for the firmware web recovery tool and upload the image to the LAN Turtle.&lt;br /&gt;
# Wait 5-10 minutes for the recovery to finish, the LAN Turtle will indicate it with a special LED blink pattern. Watch the video for the LED Pattern to know when the recovery has finished.&lt;br /&gt;
&lt;br /&gt;
=== Using the turtle modules ===&lt;br /&gt;
&lt;br /&gt;
The LAN turtle comes packed with pre-installed tools. Furthermore it is possible to program your own or download them from the internet and configure them with the module manager as well.&lt;br /&gt;
&lt;br /&gt;
[[File:LANTurtleModules.jpg|400px||LAN Turtle configuration shell interface]] &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Manually download turtle modules ====&lt;br /&gt;
If the module manager doesn&#039;t work you need to manually download turtle modules. You can do that in the console of the lan turtle, just exit the main menu.&lt;br /&gt;
You can download modules from the [https://github.com/hak5/lanturtle-modules/tree/gh-pages/modules official hak5 github].&lt;br /&gt;
&lt;br /&gt;
# Change directory to &amp;lt;code&amp;gt;/etc/turtle/modules&amp;lt;/code&amp;gt;&lt;br /&gt;
# Download modules with &amp;lt;code&amp;gt;wget &amp;lt;link&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Make the file an executeable &amp;lt;code&amp;gt;chmod +x &amp;lt;file&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== AutoSSH ====&lt;br /&gt;
&lt;br /&gt;
AutoSSH is a service which provides persistent SSH connections. If an SSH session drops, it will be quickly re-established by AutoSSH. This service is typically used to provide a convenient and persistent reverse shell into the LAN Turtle on the standard SSH port 22 - though it may be configured with any standard SSH parameters to forward any arbitrary port.&lt;br /&gt;
*&amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; - The username and hostname (DNS or IP) separated by @ for which to establish the SSH connection.&lt;br /&gt;
*&amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; - The port number from which the remote server will bind.&lt;br /&gt;
*&amp;lt;code&amp;gt;listen port&amp;lt;/code&amp;gt; - The port number to which the remote port will bind.&lt;br /&gt;
&lt;br /&gt;
Example: Per the defaults, the remote server will bind its local port 2222 back to the LAN Turtle port 22. In this scenario one may establish a persistent connection to their LAN Turtle from this reverse shell by first connecting to the public server, and then from there establishing an SSH connection to port 2222.&lt;br /&gt;
&lt;br /&gt;
==== Clomac ====&lt;br /&gt;
Clomac clones the Client&#039;s MAC address into the WAN interface.&lt;br /&gt;
&lt;br /&gt;
==== Cron ====&lt;br /&gt;
Cron is a job scheduler which can be used to start and stop modules at specific times or regular intervals using the &#039;start&#039; and &#039;stop&#039; commands.&lt;br /&gt;
&lt;br /&gt;
==== DDNSC - Dynamic Domain Name Service Client ====&lt;br /&gt;
This service provides automatic Dynamic Domain Name updates.&lt;br /&gt;
&lt;br /&gt;
==== DNSSpoof ====&lt;br /&gt;
DNSSpoof forges replies to arbitrary DNS address / pointer queries on the LAN. This is useful in bypassing hostname-based access controls, or in implementing a variety of man-in-the-middle attacks. For example, the IP address returned for a client lookup of the domain \&amp;quot;example.com\&amp;quot; can be replaced with that of the LAN Turtle itself, or a 3rd party server. In this scenario, the computer connected to the Internet through the LAN Turtle attempting to browse to this domain may be redirected to the spoofed IP.&lt;br /&gt;
&lt;br /&gt;
==== DNSMasq-Spoof ====&lt;br /&gt;
The DNSMasq-Spoof works similar to the DNSSpoof module but uses DNSMasq instead of Dsniff tools.&lt;br /&gt;
&lt;br /&gt;
==== Keymanager ====&lt;br /&gt;
With this tool you can create RSA keypairs and copy them to the public server. This is required in order to properly configure AutoSSH.&lt;br /&gt;
&lt;br /&gt;
==== Meterpreter ====&lt;br /&gt;
This module deploys an persistent shell to the Metasploit Framework of an other Machine.&lt;br /&gt;
&lt;br /&gt;
==== NetCat Reverse Shell ====&lt;br /&gt;
The netcat reverse shell provides you with remote access to the lan turtle. Even though it is not to be considered as persistent per default, its reliability can be increased with simple bash scripts on the server side.&lt;br /&gt;
&lt;br /&gt;
==== Nmap-Scan ====&lt;br /&gt;
This module uses &amp;lt;code&amp;gt;nmap&amp;lt;/code&amp;gt; for discovering running devices and their port of the current LAN network. The user is able to specify a target network range to scan, choose from different scan profiles and specify the directory to write the log file to.&lt;br /&gt;
&lt;br /&gt;
==== OpenVPN ====&lt;br /&gt;
OpenVPN enables remote access the LAN Turtle and optionally the network on which it resides. It allows to send the captured data to your operating network.&lt;br /&gt;
&lt;br /&gt;
==== QuickCreds ====&lt;br /&gt;
This module is used to retrieve login credentials from locked windows machines. The credentials are saved to &amp;lt;code&amp;gt;/root/loot&amp;lt;/code&amp;gt;. The LAN turtle LED blinks while QuickCreds is running and lights solid when its done. Versions of the LAN turtle that do not support an SD card are not able to install it properly as it requires more space.+&lt;br /&gt;
&lt;br /&gt;
==== Iodine ====&lt;br /&gt;
Establishes a DNS tunnel outbound to a server and domain name using iodine.&lt;br /&gt;
&lt;br /&gt;
==== Responder ====&lt;br /&gt;
Responder is a LLMNR, NBT-NS and MDNS posioner. It answers to specific Name Service queries based on ther name suffix. By default, it only answers to File Server Service requests for SMB. It aims to be stealthier on the network and ensure that legitimate NBT-NS behavior is not broken with.&lt;br /&gt;
&lt;br /&gt;
==== Script2Email ====&lt;br /&gt;
This module sends the output of a script as an email to a specified address. To do so, it uses SMTP and requires a mail account.&lt;br /&gt;
&lt;br /&gt;
==== Script2Http ====&lt;br /&gt;
Sens the output of a script as HTTP post to a specified URL.&lt;br /&gt;
&lt;br /&gt;
==== SSHFS ====&lt;br /&gt;
SSHFS (Secure SHell FileSystem) is a file system for Linux (and other operating systems with a FUSE implementation, such as Mac OS X or FreeBSD) capable of operating on files on a remote computer using just a secure shell login on the remote computer. On the local computer where the SSHFS is mounted, the implementation makes use of the FUSE (Filesystem in Userspace) kernel module. The practical effect of this is that the end user can seamlessly interact with remote files being securely served over SSH just as if they were local files on his/her computer. On the remote computer the SFTP subsystem of SSH is used.&lt;br /&gt;
&lt;br /&gt;
==== Tortle ====&lt;br /&gt;
Tortle makes the turtle act as an TOR Gateway. It enables you to setup several services.&lt;br /&gt;
&lt;br /&gt;
==== uPnP-Portfwd ====&lt;br /&gt;
This service provides automatic port forwarding when connected to some uPnP enabled routers. This way it is able to provide a persistend direct shell from the outside to the LAN turtle. This won&#039;t work in many cases but is useful in cases it does.&lt;br /&gt;
&lt;br /&gt;
==== Uptime ====&lt;br /&gt;
Displays the uptime of the LAN Turtle as well as the load average.&lt;br /&gt;
&lt;br /&gt;
==== URLSnarf ====&lt;br /&gt;
URLSnarf allows you to capture which websites were accessed by the plugged in computer. URLSnarf only works with HTTP webpages which are hard to find today. Even though it is displayed as downloadable via the modulemanager, it is depricated in Turtle Shell 6.2.&lt;br /&gt;
&lt;br /&gt;
== Use Cases==&lt;br /&gt;
&lt;br /&gt;
The LAN turtle can be deployed in various use cases, which can be divided into four categories:&lt;br /&gt;
* remote access attacks with AutoSSH or OpenVPN or NetCat Reverse Shell&lt;br /&gt;
* man-in-the-middle attacks with URLSnarf or DNSSpoof&lt;br /&gt;
* information gathering with Nmap-Scan&lt;br /&gt;
* deploy service with via TOR-network&lt;br /&gt;
&lt;br /&gt;
Remote access attacks are used to gain access to a private network from a remote place in order to start further attacks from the inside network. This makes it a lot more easier because the attack itself does not have to bypass a router or firewall. All the attacker needs is the pre-configured LAN turtle inside the network and a remote server on the internet. To perform a remote access, the LAN turtle builds up a tunnel to the remote server so the firewall cannot capture the traffic. Finally the attacker can access the LAN turtle through the tunnel from the remote server. This attack can be performed with the modules AutoSSH or OpenVPN.&lt;br /&gt;
&lt;br /&gt;
The LAN turtle also allows man-in-the-middle attacks, where the turtle can intercept the communication between two parties. To perform such an attack, the LAN turtle must be connected to an USB port of the victim host and to a network cable which connects the host to the internal LAN. Now the whole traffic of the victim host goes over the LAN turtle and can be logged or altered. An attacker can use URLSnarf or DNSSpoof to perform such an attack.&lt;br /&gt;
&lt;br /&gt;
The third use case is information gathering. The aim of this attack is to receive information about the topology, the hosts and the protocols of an internal network in order to perform further attacks. This can be done with the modules like Nmap-Scan.&lt;br /&gt;
&lt;br /&gt;
The following step-by-step instructions will outline how to configure the LAN turtle in order to perform the different types of attacks.&lt;br /&gt;
&lt;br /&gt;
=== Remote access attacks with AutoSSH ===&lt;br /&gt;
In this example consider an internal network which is secured by a firewall and a server in the internet controlled by the attacker. The server is using 10.0.0.41 and a user turtle was created on it in order to simplify depictions.&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Generate RSA keypairs with Keymanager ====&lt;br /&gt;
[[File:SSH_Key.png |thumb|right|400px||&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
# Open the Keymanager module and select &amp;lt;code&amp;gt;generate_key&amp;lt;/code&amp;gt;&lt;br /&gt;
# Select &amp;lt;code&amp;gt;copy_key&amp;lt;/code&amp;gt; and insert&lt;br /&gt;
#* &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; remote SSH server&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; remote SSH server port (typically 22)&lt;br /&gt;
#* &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; user on the remote SSH server&lt;br /&gt;
# A prompt will ask wether or not to confirm the fingerprint&lt;br /&gt;
# The password for the user on the host is requestes&lt;br /&gt;
# If no error occurs, the exchange was succesful&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Configure AutoSSH ====&lt;br /&gt;
[[File:SSH_config.png |thumb|right|400px||&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
# Open AutoSSH and insert the following parameters:&lt;br /&gt;
#* &amp;lt;code&amp;gt;user@host&amp;lt;/code&amp;gt; user and host to establish the SSH tunnel&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; the port on the Host used to establish the SSH tunnel&lt;br /&gt;
#* &amp;lt;code&amp;gt;remote port&amp;lt;/code&amp;gt; remote port to bind through the SSH tunnel (default 2222)&lt;br /&gt;
#* &amp;lt;code&amp;gt;local port&amp;lt;/code&amp;gt; local port to bind tunnel (default 22)&lt;br /&gt;
# Submit the changes and start AutoSSH (or enable it for autostart)&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Access LAN turtle from remote server ====&lt;br /&gt;
# Connect to the remote server&lt;br /&gt;
# Connect locally to the remote port of the AutoSSH configuration by &amp;lt;code&amp;gt;ssh root@localhost:2222&amp;lt;/code&amp;gt;&lt;br /&gt;
# You are now on the LAN turtle, continue with further attacks&lt;br /&gt;
&lt;br /&gt;
=== Remote access attacks with NetCat Reverse Shell ===&lt;br /&gt;
[[File:NC_output.png |thumb|right|400px||Servers perspective of the NC reverse shell &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
==== Step 1: Start NetCat server on your host machine ====&lt;br /&gt;
* First you need to setup a netcat connection on your host machine that listens to incoming connections. To start NetCat server execute &amp;lt;code&amp;gt;nc -l 8080&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Configure NetCat Reverse Shell ====&lt;br /&gt;
# Open the NetCat Reverse Shell module and go to &amp;quot;Configure&amp;quot;&lt;br /&gt;
# Enter your host machines ip address and the port of the nc server. In our case 4444.&lt;br /&gt;
# Start the module on the LAN Turtle.&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Exploit ====&lt;br /&gt;
When the reverse shell connected to your host machine you can execute commands on the lan turtle over the reverse shell.&lt;br /&gt;
&lt;br /&gt;
=== Gather credentials of locked machines using QuickCreds ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Install an SD Card to an applicable Lan Turtle ====&lt;br /&gt;
# Carefully open the Lan Turtle Shell as described above, also mind the two screws hidden under the sticker to open it fully&lt;br /&gt;
# Turn the Lan Turtle around and fit an SD Card into the SD Card Slot&lt;br /&gt;
# Start the Lan Turtle and select the &amp;quot;Format SD Card&amp;quot; option. This is important to avoid any filesystem incompatibilities&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install QuickCreds module ====&lt;br /&gt;
# Open the Module Manager, select QuickCreds and install it&lt;br /&gt;
# Go back to the installed modules and open QuickCreds&lt;br /&gt;
# Select configure and wait for a minute while QuickCreds installs all the necessary packages&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Arm QuickCreds ====&lt;br /&gt;
# Open QuickCreds and click &amp;quot;ENABLE&amp;quot;, this will start QuickCreds when the Lan Turtle is plugged in&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Exploit ====&lt;br /&gt;
# Plug the armed Lan Turtle into any locked Windows machine&lt;br /&gt;
# The amber LED will flash very quickly while the attack is running, afterwards they will slow down while the files are saved and the attacks finishes. Lastly the amber LED will flash in a slow and steady pattern to signalize everything is finished up&lt;br /&gt;
# Remove the Lan Turtle&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Gather hashes ====&lt;br /&gt;
# Plug the Lan Turtle into your machine again and connect via SSH&lt;br /&gt;
# Navigate to &amp;quot;/root/loot/quickcreds&amp;quot;&lt;br /&gt;
# Every folder &amp;quot;Creds1&amp;quot; ... &amp;quot;CredsN&amp;quot; contains the log of QuickCreds attacks, aswell as the gathered NTLM hashes, if the attack was successful&lt;br /&gt;
# Windows devices that use a connected Microsoft Account are currently no susceptible for QuickCreds attacks &lt;br /&gt;
&lt;br /&gt;
=== Man-in-the-middle attacks with DNSMasq-Spoof ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Configure the spoofhost file ====&lt;br /&gt;
# Open the DNSMasq-Spoof module and go to &amp;quot;Configure&amp;quot;&lt;br /&gt;
# Add the DNS entries that the LAN turtle should spoof by entering the host IP address and the spoofed DNS name&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Set up your server ====&lt;br /&gt;
#Create an index.html file by using the command &amp;lt;code&amp;gt;nano index.html&amp;lt;/code&amp;gt; and fill it with the content you want to display to the target&lt;br /&gt;
#Set up http. An easy way to do so is by issuing &amp;lt;code&amp;gt;sudo python3 -m http.server 8080&amp;lt;/code&amp;gt; on your server&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Place the LAN turtle in the network ====&lt;br /&gt;
After configuring the spoofed hosts, place the LAN turtle on the victim computer by simply plugging the turtle into an USB port of the computer and the network cable into the LAN turtle. When trying to access one of the spoofed DNS names, the target instead opens your pre-configured html file.&lt;br /&gt;
&lt;br /&gt;
=== Information Gathering with nmap ===&lt;br /&gt;
As an example project we use the following modules:&lt;br /&gt;
* Cron to periodically start the attack&lt;br /&gt;
* SSHFS to save the caputred information in a file on the remote server&lt;br /&gt;
* Nmap-Scan to sniff the configuration and devices of the network&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Configure SSHFS ====&lt;br /&gt;
# Access the SSHFS module via the module manager&lt;br /&gt;
# Go to the configure tab and insert&lt;br /&gt;
#* &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; IP address of the remote server&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; 22&lt;br /&gt;
#* &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; the username&lt;br /&gt;
#* &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; This can be left blank if you want to use the users home directory&lt;br /&gt;
# Start SSHFS and enable it for start up&lt;br /&gt;
&lt;br /&gt;
==== Step 2: nmap-scan ====&lt;br /&gt;
# Access the nmap-scan module via the module manager&lt;br /&gt;
# Go to the configure tab and insert&lt;br /&gt;
#* target: &amp;lt;code&amp;gt;192.168.0.1-255&amp;lt;/code&amp;gt; (This may differ for our network)&lt;br /&gt;
#* logflie: &amp;lt;code&amp;gt;/sshfs/&amp;lt;/code&amp;gt;&lt;br /&gt;
#* use the desired attack profile&lt;br /&gt;
#* save the configuration with execute&lt;br /&gt;
&lt;br /&gt;
==== Step 3: cron job ====&lt;br /&gt;
# add in the con config &amp;lt;code&amp;gt;*/15 * * * * start nmap-scan&amp;lt;/code&amp;gt;&lt;br /&gt;
This line start an nmap-scan every 15 minutes.&lt;br /&gt;
&lt;br /&gt;
=== Deploy services via TOR with Tortle ===&lt;br /&gt;
==== Hidden Service ====&lt;br /&gt;
Onion Host sets up a hidden service inside the TOR network. By default it is a TORShell (SSH within TOR).&lt;br /&gt;
==== Proxy &amp;amp; Gateway configuration ====&lt;br /&gt;
TORGateway, if enabled, automatically and conveniently tunnels ALL eth0 traffic through TOR Transparent Proxy. TOR Proxy is just the regular SOCKS proxy through TOR.&lt;br /&gt;
==== Bridge configurtation ====&lt;br /&gt;
Bridges can be used to avoid blocking of the standard tor relays.&lt;br /&gt;
==== HTTP Proxy configuration ====&lt;br /&gt;
HTTP Proxy can be configured to control internet access.&lt;br /&gt;
==== HTTPS Proxy configuration ====&lt;br /&gt;
HTTPS Proxy can be configured to control internet access.&lt;br /&gt;
==== Firewall configuration ====&lt;br /&gt;
You can configure a firewall that restricts access to serveral ports.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[LAN Turtle]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.hak5.org/hc/en-us/categories/360000979313-LAN-Turtle&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;own creation&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_LAN_Turtle&amp;diff=10444</id>
		<title>Hak5 LAN Turtle</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_LAN_Turtle&amp;diff=10444"/>
		<updated>2022-12-07T08:26:24Z</updated>

		<summary type="html">&lt;p&gt;ARessl: Added QuickCreds attack&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
[[File:LANTurtle.jpg |thumb|right|400px||LAN Turtle and Field Guide &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
The LAN turtle is a tool for penetration testers and system administrators disguised as a simple USB Ethernet adapter. It provides possibilities to perform remote access, man-in-the-middle and information gathering attacks. These functions are provided by the turtle modules which are preinstalled on the LAN turtle. The modules are based on the OpenWRT platform which allow users to add customized modules. The turtle itself is covert by a generic USB to Ethernet adapter and can therefore be placed unnoticed in IT infrastructures.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the LAN Turtle ===&lt;br /&gt;
&lt;br /&gt;
# Plug the LAN turtle into one of the USB ports of your computer.&lt;br /&gt;
# Your computer will get an 172.16.84.x address as soon as the startup sequence of the turtle finished. If not, then you have to statically configure an IP out of the 172.16.84.0/24 range.&lt;br /&gt;
# Connect to the turtle with &amp;lt;code&amp;gt;ssh root@172.16.84.1&amp;lt;/code&amp;gt; and enter the password &amp;lt;code&amp;gt;sh3llz&amp;lt;/code&amp;gt;&lt;br /&gt;
# The simplistic graphical shell interface will prompt you to change the password but the old one is also allowed.&lt;br /&gt;
# The LAN turtle can be configured and modules can be installed within the interface. &lt;br /&gt;
# If you end the interface you will be greeted with an normal Linux shell but you can open it again with the &amp;lt;code&amp;gt;turtle&amp;lt;/code&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
=== Updating firmware (optional) ===&lt;br /&gt;
To ensure the best performance and compatability you should update the firmware regularly. This requires internet connection.&lt;br /&gt;
&lt;br /&gt;
# Select &amp;lt;code&amp;gt;Config&amp;lt;/code&amp;gt; in the Main Menu and press select.&lt;br /&gt;
# Go to &amp;lt;code&amp;gt;Check for updates&amp;lt;/code&amp;gt; and press select to start the update process.&lt;br /&gt;
# Wait till the update finishes.&lt;br /&gt;
&lt;br /&gt;
=== Factory Reset (optional)===&lt;br /&gt;
In the extreme case that a LAN Turtle has become permanently inaccessible or inoperative, there is a quick method for recovery using a special web interface.&lt;br /&gt;
# Download the latest LAN Turtle factory image from the [https://downloads.hak5.org/ official download center]. Note: Choose the factory recovery image.&lt;br /&gt;
# Open the LAN Turtle carefully. There are 2 screws under the sticker.&lt;br /&gt;
# Now you need to find the reset button/jumper contact. You can find a video on how to locate [https://www.youtube.com/watch?v=ubNin_79wxE here].&lt;br /&gt;
# Hold down the button/jumper while you&#039;re plugging the LAN Turtle in your PC and keep holding it for 5 more seconds.&lt;br /&gt;
# Go to http://192.168.1.1 for the firmware web recovery tool and upload the image to the LAN Turtle.&lt;br /&gt;
# Wait 5-10 minutes for the recovery to finish, the LAN Turtle will indicate it with a special LED blink pattern. Watch the video for the LED Pattern to know when the recovery has finished.&lt;br /&gt;
&lt;br /&gt;
=== Using the turtle modules ===&lt;br /&gt;
&lt;br /&gt;
The LAN turtle comes packed with pre-installed tools. Furthermore it is possible to program your own or download them from the internet and configure them with the module manager as well.&lt;br /&gt;
&lt;br /&gt;
[[File:LANTurtleModules.jpg|400px||LAN Turtle configuration shell interface]] &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Manually download turtle modules ====&lt;br /&gt;
If the module manager doesn&#039;t work you need to manually download turtle modules. You can do that in the console of the lan turtle, just exit the main menu.&lt;br /&gt;
You can download modules from the [https://github.com/hak5/lanturtle-modules/tree/gh-pages/modules official hak5 github].&lt;br /&gt;
&lt;br /&gt;
# Change directory to &amp;lt;code&amp;gt;/etc/turtle/modules&amp;lt;/code&amp;gt;&lt;br /&gt;
# Download modules with &amp;lt;code&amp;gt;wget &amp;lt;link&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Make the file an executeable &amp;lt;code&amp;gt;chmod +x &amp;lt;file&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== AutoSSH ====&lt;br /&gt;
&lt;br /&gt;
AutoSSH is a service which provides persistent SSH connections. If an SSH session drops, it will be quickly re-established by AutoSSH. This service is typically used to provide a convenient and persistent reverse shell into the LAN Turtle on the standard SSH port 22 - though it may be configured with any standard SSH parameters to forward any arbitrary port.&lt;br /&gt;
*&amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; - The username and hostname (DNS or IP) separated by @ for which to establish the SSH connection.&lt;br /&gt;
*&amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; - The port number from which the remote server will bind.&lt;br /&gt;
*&amp;lt;code&amp;gt;listen port&amp;lt;/code&amp;gt; - The port number to which the remote port will bind.&lt;br /&gt;
&lt;br /&gt;
Example: Per the defaults, the remote server will bind its local port 2222 back to the LAN Turtle port 22. In this scenario one may establish a persistent connection to their LAN Turtle from this reverse shell by first connecting to the public server, and then from there establishing an SSH connection to port 2222.&lt;br /&gt;
&lt;br /&gt;
==== Clomac ====&lt;br /&gt;
Clomac clones the Client&#039;s MAC address into the WAN interface.&lt;br /&gt;
&lt;br /&gt;
==== Cron ====&lt;br /&gt;
Cron is a job scheduler which can be used to start and stop modules at specific times or regular intervals using the &#039;start&#039; and &#039;stop&#039; commands.&lt;br /&gt;
&lt;br /&gt;
==== DDNSC - Dynamic Domain Name Service Client ====&lt;br /&gt;
This service provides automatic Dynamic Domain Name updates.&lt;br /&gt;
&lt;br /&gt;
==== DNSSpoof ====&lt;br /&gt;
DNSSpoof forges replies to arbitrary DNS address / pointer queries on the LAN. This is useful in bypassing hostname-based access controls, or in implementing a variety of man-in-the-middle attacks. For example, the IP address returned for a client lookup of the domain \&amp;quot;example.com\&amp;quot; can be replaced with that of the LAN Turtle itself, or a 3rd party server. In this scenario, the computer connected to the Internet through the LAN Turtle attempting to browse to this domain may be redirected to the spoofed IP.&lt;br /&gt;
&lt;br /&gt;
==== DNSMasq-Spoof ====&lt;br /&gt;
The DNSMasq-Spoof works similar to the DNSSpoof module but uses DNSMasq instead of Dsniff tools.&lt;br /&gt;
&lt;br /&gt;
==== Keymanager ====&lt;br /&gt;
With this tool you can create RSA keypairs and copy them to the public server. This is required in order to properly configure AutoSSH.&lt;br /&gt;
&lt;br /&gt;
==== Meterpreter ====&lt;br /&gt;
This module deploys an persistent shell to the Metasploit Framework of an other Machine.&lt;br /&gt;
&lt;br /&gt;
==== NetCat Reverse Shell ====&lt;br /&gt;
The netcat reverse shell provides you with remote access to the lan turtle. Even though it is not to be considered as persistent per default, its reliability can be increased with simple bash scripts on the server side.&lt;br /&gt;
&lt;br /&gt;
==== Nmap-Scan ====&lt;br /&gt;
This module uses &amp;lt;code&amp;gt;nmap&amp;lt;/code&amp;gt; for discovering running devices and their port of the current LAN network. The user is able to specify a target network range to scan, choose from different scan profiles and specify the directory to write the log file to.&lt;br /&gt;
&lt;br /&gt;
==== OpenVPN ====&lt;br /&gt;
OpenVPN enables remote access the LAN Turtle and optionally the network on which it resides. It allows to send the captured data to your operating network.&lt;br /&gt;
&lt;br /&gt;
==== QuickCreds ====&lt;br /&gt;
This module is used to retrieve login credentials from locked windows machines. The credentials are saved to &amp;lt;code&amp;gt;/root/loot&amp;lt;/code&amp;gt;. The LAN turtle LED blinks while QuickCreds is running and lights solid when its done. Versions of the LAN turtle that do not support an SD card are not able to install it properly as it requires more space.+&lt;br /&gt;
&lt;br /&gt;
==== Iodine ====&lt;br /&gt;
Establishes a DNS tunnel outbound to a server and domain name using iodine.&lt;br /&gt;
&lt;br /&gt;
==== Responder ====&lt;br /&gt;
Responder is a LLMNR, NBT-NS and MDNS posioner. It answers to specific Name Service queries based on ther name suffix. By default, it only answers to File Server Service requests for SMB. It aims to be stealthier on the network and ensure that legitimate NBT-NS behavior is not broken with.&lt;br /&gt;
&lt;br /&gt;
==== Script2Email ====&lt;br /&gt;
This module sends the output of a script as an email to a specified address. To do so, it uses SMTP and requires a mail account.&lt;br /&gt;
&lt;br /&gt;
==== Script2Http ====&lt;br /&gt;
Sens the output of a script as HTTP post to a specified URL.&lt;br /&gt;
&lt;br /&gt;
==== SSHFS ====&lt;br /&gt;
SSHFS (Secure SHell FileSystem) is a file system for Linux (and other operating systems with a FUSE implementation, such as Mac OS X or FreeBSD) capable of operating on files on a remote computer using just a secure shell login on the remote computer. On the local computer where the SSHFS is mounted, the implementation makes use of the FUSE (Filesystem in Userspace) kernel module. The practical effect of this is that the end user can seamlessly interact with remote files being securely served over SSH just as if they were local files on his/her computer. On the remote computer the SFTP subsystem of SSH is used.&lt;br /&gt;
&lt;br /&gt;
==== Tortle ====&lt;br /&gt;
Tortle makes the turtle act as an TOR Gateway. It enables you to setup several services.&lt;br /&gt;
&lt;br /&gt;
==== uPnP-Portfwd ====&lt;br /&gt;
This service provides automatic port forwarding when connected to some uPnP enabled routers. This way it is able to provide a persistend direct shell from the outside to the LAN turtle. This won&#039;t work in many cases but is useful in cases it does.&lt;br /&gt;
&lt;br /&gt;
==== Uptime ====&lt;br /&gt;
Displays the uptime of the LAN Turtle as well as the load average.&lt;br /&gt;
&lt;br /&gt;
==== URLSnarf ====&lt;br /&gt;
URLSnarf allows you to capture which websites were accessed by the plugged in computer. URLSnarf only works with HTTP webpages which are hard to find today. Even though it is displayed as downloadable via the modulemanager, it is depricated in Turtle Shell 6.2.&lt;br /&gt;
&lt;br /&gt;
== Use Cases==&lt;br /&gt;
&lt;br /&gt;
The LAN turtle can be deployed in various use cases, which can be divided into four categories:&lt;br /&gt;
* remote access attacks with AutoSSH or OpenVPN or NetCat Reverse Shell&lt;br /&gt;
* man-in-the-middle attacks with URLSnarf or DNSSpoof&lt;br /&gt;
* information gathering with Nmap-Scan&lt;br /&gt;
* deploy service with via TOR-network&lt;br /&gt;
&lt;br /&gt;
Remote access attacks are used to gain access to a private network from a remote place in order to start further attacks from the inside network. This makes it a lot more easier because the attack itself does not have to bypass a router or firewall. All the attacker needs is the pre-configured LAN turtle inside the network and a remote server on the internet. To perform a remote access, the LAN turtle builds up a tunnel to the remote server so the firewall cannot capture the traffic. Finally the attacker can access the LAN turtle through the tunnel from the remote server. This attack can be performed with the modules AutoSSH or OpenVPN.&lt;br /&gt;
&lt;br /&gt;
The LAN turtle also allows man-in-the-middle attacks, where the turtle can intercept the communication between two parties. To perform such an attack, the LAN turtle must be connected to an USB port of the victim host and to a network cable which connects the host to the internal LAN. Now the whole traffic of the victim host goes over the LAN turtle and can be logged or altered. An attacker can use URLSnarf or DNSSpoof to perform such an attack.&lt;br /&gt;
&lt;br /&gt;
The third use case is information gathering. The aim of this attack is to receive information about the topology, the hosts and the protocols of an internal network in order to perform further attacks. This can be done with the modules like Nmap-Scan.&lt;br /&gt;
&lt;br /&gt;
The following step-by-step instructions will outline how to configure the LAN turtle in order to perform the different types of attacks.&lt;br /&gt;
&lt;br /&gt;
=== Remote access attacks with AutoSSH ===&lt;br /&gt;
In this example consider an internal network which is secured by a firewall and a server in the internet controlled by the attacker. The server is using 10.0.0.41 and a user turtle was created on it in order to simplify depictions.&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Generate RSA keypairs with Keymanager ====&lt;br /&gt;
[[File:SSH_Key.png |thumb|right|400px||&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
# Open the Keymanager module and select &amp;lt;code&amp;gt;generate_key&amp;lt;/code&amp;gt;&lt;br /&gt;
# Select &amp;lt;code&amp;gt;copy_key&amp;lt;/code&amp;gt; and insert&lt;br /&gt;
#* &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; remote SSH server&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; remote SSH server port (typically 22)&lt;br /&gt;
#* &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; user on the remote SSH server&lt;br /&gt;
# A prompt will ask wether or not to confirm the fingerprint&lt;br /&gt;
# The password for the user on the host is requestes&lt;br /&gt;
# If no error occurs, the exchange was succesful&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Configure AutoSSH ====&lt;br /&gt;
[[File:SSH_config.png |thumb|right|400px||&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
# Open AutoSSH and insert the following parameters:&lt;br /&gt;
#* &amp;lt;code&amp;gt;user@host&amp;lt;/code&amp;gt; user and host to establish the SSH tunnel&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; the port on the Host used to establish the SSH tunnel&lt;br /&gt;
#* &amp;lt;code&amp;gt;remote port&amp;lt;/code&amp;gt; remote port to bind through the SSH tunnel (default 2222)&lt;br /&gt;
#* &amp;lt;code&amp;gt;local port&amp;lt;/code&amp;gt; local port to bind tunnel (default 22)&lt;br /&gt;
# Submit the changes and start AutoSSH (or enable it for autostart)&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Access LAN turtle from remote server ====&lt;br /&gt;
# Connect to the remote server&lt;br /&gt;
# Connect locally to the remote port of the AutoSSH configuration by &amp;lt;code&amp;gt;ssh root@localhost:2222&amp;lt;/code&amp;gt;&lt;br /&gt;
# You are now on the LAN turtle, continue with further attacks&lt;br /&gt;
&lt;br /&gt;
=== Remote access attacks with NetCat Reverse Shell ===&lt;br /&gt;
[[File:NC_output.png |thumb|right|400px||Servers perspective of the NC reverse shell &amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
==== Step 1: Start NetCat server on your host machine ====&lt;br /&gt;
* First you need to setup a netcat connection on your host machine that listens to incoming connections. To start NetCat server execute &amp;lt;code&amp;gt;nc -l 8080&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Configure NetCat Reverse Shell ====&lt;br /&gt;
# Open the NetCat Reverse Shell module and go to &amp;quot;Configure&amp;quot;&lt;br /&gt;
# Enter your host machines ip address and the port of the nc server. In our case 4444.&lt;br /&gt;
# Start the module on the LAN Turtle.&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Exploit ====&lt;br /&gt;
When the reverse shell connected to your host machine you can execute commands on the lan turtle over the reverse shell.&lt;br /&gt;
&lt;br /&gt;
=== Gather credentials of locked machines using QuickCreds ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Install an SD Card to an applicable Lan Turtle ====&lt;br /&gt;
# Carefully open the Lan Turtle Shell as described above, also mind the two screws hidden under the sticker to open it fully&lt;br /&gt;
# Turn the Lan Turtle around and fit an SD Card into the SD Card Slot&lt;br /&gt;
# Start the Lan Turtle and select the &amp;quot;Format SD Card&amp;quot; option. This is important to avoid any filesystem incompatibilities&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install QuickCreds module ====&lt;br /&gt;
# Open the Module Manager, select QuickCreds and install it&lt;br /&gt;
# Go back to the installed modules and open QuickCreds&lt;br /&gt;
# Select configure and wait for a minute while QuickCreds installs all the necessary packages&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Arm QuickCreds ====&lt;br /&gt;
# Open QuickCreds and click &amp;quot;ENABLE&amp;quot;, this will start QuickCreds when the Lan Turtle is plugged in&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Exploit ====&lt;br /&gt;
# Plug the armed Lan Turtle into any locked Windows machine&lt;br /&gt;
# The amber LED will flash very quickly while the attack is running, afterwards they will slow down while the files are saved and the attacks finishes. Lastly the amber LED will flash in a slow and steady pattern to signalize everything is finished up&lt;br /&gt;
# Remove the Lan Turtle&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Gather hashes ====&lt;br /&gt;
# Plug the Lan Turtle into your machine again and connect via SSH&lt;br /&gt;
# Navigate to &amp;quot;/root/loot/quickcreds&amp;quot;&lt;br /&gt;
# Every folder &amp;quot;Creds1&amp;quot; ... &amp;quot;CredsN&amp;quot; contains the log of QuickCreds attacks, aswell as the gathered NTLM hashes, if the attack was successful&lt;br /&gt;
# Windows devices that use a connected Microsoft Account are currently no susceptible for QuickCreds attacks &lt;br /&gt;
&lt;br /&gt;
=== Man-in-the-middle attacks with DNSMasq-Spoof ===&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Configure the spoofhost file ====&lt;br /&gt;
# Open the DNSMasq-Spoof module and go to &amp;quot;Configure&amp;quot;&lt;br /&gt;
# Add the DNS entries that the LAN turtle should spoof by entering the host IP address and the spoofed DNS name&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Set up your server ====&lt;br /&gt;
#Create an index.html file by using the command &amp;lt;code&amp;gt;nano index.html&amp;lt;/code&amp;gt; and fill it with the content you want to display to the target&lt;br /&gt;
#Set up http. An easy way to do so is by issuing &amp;lt;code&amp;gt;sudo python3 -m http.server 8080&amp;lt;/code&amp;gt; on your server&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Place the LAN turtle in the network ====&lt;br /&gt;
After configuring the spoofed hosts, place the LAN turtle on the victim computer by simply plugging the turtle into an USB port of the computer and the network cable into the LAN turtle. When trying to access one of the spoofed DNS names, the target instead opens your pre-configured html file.&lt;br /&gt;
&lt;br /&gt;
=== Information Gathering with nmap ===&lt;br /&gt;
As an example project we use the following modules:&lt;br /&gt;
* Cron to periodically start the attack&lt;br /&gt;
* SSHFS to save the caputred information in a file on the remote server&lt;br /&gt;
* Nmap-Scan to sniff the configuration and devices of the network&lt;br /&gt;
&lt;br /&gt;
==== Step 1: Configure SSHFS ====&lt;br /&gt;
# Access the SSHFS module via the module manager&lt;br /&gt;
# Go to the configure tab and insert&lt;br /&gt;
#* &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; IP address of the remote server&lt;br /&gt;
#* &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; 22&lt;br /&gt;
#* &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; the username&lt;br /&gt;
#* &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; This can be left blank if you want to use the users home directory&lt;br /&gt;
# Start SSHFS and enable it for start up&lt;br /&gt;
&lt;br /&gt;
==== Step 2: nmap-scan ====&lt;br /&gt;
# Access the nmap-scan module via the module manager&lt;br /&gt;
# Go to the configure tab and insert&lt;br /&gt;
#* target: &amp;lt;code&amp;gt;192.168.0.1-255&amp;lt;/code&amp;gt; (This may differ for our network)&lt;br /&gt;
#* logflie: &amp;lt;code&amp;gt;/sshfs/&amp;lt;/code&amp;gt;&lt;br /&gt;
#* use the desired attack profile&lt;br /&gt;
#* save the configuration with execute&lt;br /&gt;
&lt;br /&gt;
==== Step 3: cron job ====&lt;br /&gt;
# add in the con config &amp;lt;code&amp;gt;*/15 * * * * start nmap-scan&amp;lt;/code&amp;gt;&lt;br /&gt;
This line start an nmap-scan every 15 minutes.&lt;br /&gt;
&lt;br /&gt;
=== Deploy services via TOR with Tortle ===&lt;br /&gt;
==== Hidden Service ====&lt;br /&gt;
Onion Host sets up a hidden service inside the TOR network. By default it is a TORShell (SSH within TOR).&lt;br /&gt;
==== Proxy &amp;amp; Gateway configuration ====&lt;br /&gt;
TORGateway, if enabled, automatically and conveniently tunnels ALL eth0 traffic through TOR Transparent Proxy. TOR Proxy is just the regular SOCKS proxy through TOR.&lt;br /&gt;
==== Bridge configurtation ====&lt;br /&gt;
Bridges can be used to avoid blocking of the standard tor relays.&lt;br /&gt;
==== HTTP Proxy configuration ====&lt;br /&gt;
HTTP Proxy can be configured to control internet access.&lt;br /&gt;
==== HTTPS Proxy configuration ====&lt;br /&gt;
HTTPS Proxy can be configured to control internet access.&lt;br /&gt;
==== Firewall configuration ====&lt;br /&gt;
You can configure a firewall that restricts access to serveral ports.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[LAN Turtle]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* https://docs.hak5.org/hc/en-us/categories/360000979313-LAN-Turtle&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;own&amp;quot;&amp;gt;own creation&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10403</id>
		<title>AI: Anomaly Detection in logfiles</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10403"/>
		<updated>2022-07-27T15:46:30Z</updated>

		<summary type="html">&lt;p&gt;ARessl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This guide will create a basic AI model to perform binary classification in order to detect anomalies in logfiles.&lt;br /&gt;
This AI model is also suitable for the [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Packages: TensorFlow, Keras, Pandas, sklearn, numpy, seaborn, matplotlib&lt;br /&gt;
* Software: Pycharm or any other python editor&lt;br /&gt;
* Dataset: We used the following [https://www.unb.ca/cic/datasets/ids-2018.html Dataset]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 0 - Import the needed packages/libraries ===&lt;br /&gt;
&lt;br /&gt;
 from keras.callbacks import EarlyStopping, ModelCheckpoint # for training&lt;br /&gt;
 from keras.models import Sequential, load_model # for model&lt;br /&gt;
 from keras.layers import Dense, Activation # layers and activation function&lt;br /&gt;
 import pandas as pd # read/prep dataset&lt;br /&gt;
 pd.options.mode.chained_assignment = None # removes warning&lt;br /&gt;
 import numpy as np # read/prep dataset&lt;br /&gt;
 import sklearn.model_selection as sk # dataset splitting&lt;br /&gt;
 import tensorflow as tf # for model&lt;br /&gt;
 import seaborn as sns # plotting&lt;br /&gt;
 from sklearn.metrics import confusion_matrix # confusion matrix&lt;br /&gt;
 from matplotlib import pyplot as plt # plotting&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Read the dataset ===&lt;br /&gt;
&lt;br /&gt;
First we need to read the data, for that we can use the predefined function from pandas &#039;read_csv&#039;&lt;br /&gt;
 logfile_features = pd.read_csv(path)&lt;br /&gt;
Afterwards we replace the infinite values with nans and drop them all together&lt;br /&gt;
 logfile_features.replace([np.inf, -np.inf], np.nan, inplace=True)&lt;br /&gt;
 logfile_features.dropna(inplace=True)&lt;br /&gt;
Our dataset has labels which define if its an attack or not, so we replace them with numericals (0 and 1)&lt;br /&gt;
&lt;br /&gt;
In our case Benign is for standard user traffic and DoS attacks-Slowloris and DoS attacks-GoldenEye is for traffic where a DoS attack occured&lt;br /&gt;
 logfile_features[&amp;quot;Label&amp;quot;].replace({&amp;quot;Benign&amp;quot;: 0, &amp;quot;DoS attacks-Slowloris&amp;quot;: 1, &amp;quot;DoS attacks-GoldenEye&amp;quot;: 1}, inplace=True)&lt;br /&gt;
Next we shuffle our dataset&lt;br /&gt;
 logfile_features = logfile_features.sample(frac=1) &lt;br /&gt;
&lt;br /&gt;
Now we need to split our data into 3 parts: Training data (60%), Test data (20%) and Validation data (20%).&lt;br /&gt;
To do that we use the following methods&lt;br /&gt;
 train_dataset, temp_test_dataset = sk.train_test_split(logfile_features, test_size=0.4)&lt;br /&gt;
 test_dataset, valid_dataset = sk.train_test_split(temp_test_dataset, test_size=0.5)&lt;br /&gt;
&lt;br /&gt;
Next we extract the labels from the actual dataset, we need them extra for our training&lt;br /&gt;
 train_labels = train_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 test_labels = test_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 valid_labels = valid_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
&lt;br /&gt;
To norm our data correctly we need to get the stats of our training data (mean and standard deviation)&lt;br /&gt;
 train_stats = train_dataset.describe()&lt;br /&gt;
 train_stats = train_stats.transpose()&lt;br /&gt;
&lt;br /&gt;
For norming we use a following method&lt;br /&gt;
 def norm(x, stats):&lt;br /&gt;
     return (x - stats[&#039;mean&#039;]) / stats[&#039;std&#039;]&lt;br /&gt;
This method can then be used the following way&lt;br /&gt;
  normed_train_data = norm(train_dataset, train_stats)&lt;br /&gt;
  normed_test_data = norm(test_dataset, train_stats)&lt;br /&gt;
  normed_valid_dataset = norm(valid_dataset, train_stats)&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Create a model ===&lt;br /&gt;
&lt;br /&gt;
First we need to create a sequential model, which can be trained later&lt;br /&gt;
 model = Sequential()&lt;br /&gt;
&lt;br /&gt;
The next step is to create an input layer with exactly as many nodes as features in our training data&lt;br /&gt;
  model.add(Dense(normed_train_data.shape[1],input_shape=(normed_train_data.shape[1],))&lt;br /&gt;
&lt;br /&gt;
Next a hidden layer consisting of 128 nodes with the ReLU (Rectified Linear Unit) activation function&lt;br /&gt;
 model.add(Dense(128, Activation(&#039;relu&#039;)))&lt;br /&gt;
&lt;br /&gt;
And finally the output layer consisting of 1 node which represents &#039;attack&#039; or &#039;no attack&#039;&lt;br /&gt;
 model.add(Dense(1))&lt;br /&gt;
&lt;br /&gt;
Now we could change the learning rate to a specific value, but we just leave it at the default 0.001&lt;br /&gt;
 learning_rate = 0.001&lt;br /&gt;
For the optimizer we just use the Adam Optimizer with the pre-defined learning rate&lt;br /&gt;
 optimizer = tf.optimizers.Adam(learning_rate)&lt;br /&gt;
&lt;br /&gt;
Lastly we need to compile the model, for the loss function we use BinaryCrossentropy, our optimizer and the metric should be the accuarcy of the model&lt;br /&gt;
 model.compile(loss=tf.keras.losses.BinaryCrossentropy(from_logits=True), &lt;br /&gt;
   optimizer=optimizer,&lt;br /&gt;
   metrics=[&#039;accuracy&#039;])&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Train the model ===&lt;br /&gt;
&lt;br /&gt;
First we set our epochs, a complete pass of the normed training data through the model, and our batch size, after how many datapoints the model gets updated&lt;br /&gt;
 EPOCHS = 5000&lt;br /&gt;
 batch_size = 1024&lt;br /&gt;
&lt;br /&gt;
To not have to wait for 5000 training epochs to finish and to prevent overfitting we can set an early stop&lt;br /&gt;
 es = EarlyStopping(monitor=&#039;val_loss&#039;, mode=&#039;min&#039;, verbose=1, patience=2)&lt;br /&gt;
&lt;br /&gt;
Finally the training, model fitting, can start&lt;br /&gt;
 with tf.device(&#039;/CPU:0&#039;): &lt;br /&gt;
    # with tf.device(&#039;/GPU:0&#039;): # wenn man mit der Grafikkarte trainieren will&lt;br /&gt;
    history = model.fit(&lt;br /&gt;
        normed_train_data,&lt;br /&gt;
        train_labels,&lt;br /&gt;
        batch_size=batch_size,&lt;br /&gt;
        epochs=EPOCHS,&lt;br /&gt;
        verbose=1,&lt;br /&gt;
        shuffle=True,&lt;br /&gt;
        steps_per_epoch=int(normed_train_data.shape[0] / batch_size),&lt;br /&gt;
        validation_data=(normed_valid_dataset, valid_labels), callbacks=[es],&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Plot the results ===&lt;br /&gt;
After the training has been completed you can easily plot the accuarcy and validation accuracy during the training using&lt;br /&gt;
 plt.plot(history.history[&#039;accuracy&#039;])&lt;br /&gt;
 plt.plot(history.history[&#039;val_accuracy&#039;])&lt;br /&gt;
 plt.title(&#039;model accuracy&#039;)&lt;br /&gt;
 plt.ylabel(&#039;accuracy&#039;)&lt;br /&gt;
 plt.xlabel(&#039;epoch&#039;)&lt;br /&gt;
 plt.legend([&#039;Train&#039;, &#039;Cross-Validation&#039;], loc=&#039;upper left&#039;)&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
To show the accuarcy when tested against the test data, meaning data the model didn&#039;t train with, we can use a confusion matrix the following&lt;br /&gt;
 ax = plt.subplot()&lt;br /&gt;
 predict_results = model.predict(normed_test_data)&lt;br /&gt;
 predict_results = (predict_results &amp;gt; 0.5)&lt;br /&gt;
 cm = confusion_matrix(test_labels, predict_results)&lt;br /&gt;
 ax.set_xlabel(&#039;Predicted labels&#039;)&lt;br /&gt;
 ax.set_ylabel(&#039;True labels&#039;)&lt;br /&gt;
 ax.set_title(&#039;Confusion Matrix&#039;)&lt;br /&gt;
 ax.xaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 ax.yaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
[[File:AI_model_accuracy.png|500px|Model Accuracy]]&lt;br /&gt;
[[File:AI_confusion_matrix.png|500px|Confusion Matrix]]&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Dataset https://www.unb.ca/cic/datasets/ids-2018.html&lt;br /&gt;
* learndatasci Guide https://www.learndatasci.com/glossary/binary-classification/&lt;br /&gt;
* Binary Classification with keras Guide https://machinelearningmastery.com/binary-classification-tutorial-with-the-keras-deep-learning-library/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10347</id>
		<title>AI: Anomaly Detection in logfiles</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10347"/>
		<updated>2022-07-13T14:54:20Z</updated>

		<summary type="html">&lt;p&gt;ARessl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This guide will create a basic AI model to perform binary classification in order to detect anomalies in logfiles.&lt;br /&gt;
This AI model is also suitable for the [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Packages: TensorFlow, Keras, Pandas, sklearn, numpy, seaborn, matplotlib&lt;br /&gt;
* Software: Pycharm or any other python editor&lt;br /&gt;
* Dataset: We used the following [https://www.unb.ca/cic/datasets/ids-2018.html Dataset]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 0 - Import the needed packages/libraries ===&lt;br /&gt;
&lt;br /&gt;
 from keras.callbacks import EarlyStopping, ModelCheckpoint # for training&lt;br /&gt;
 from keras.models import Sequential, load_model # for model&lt;br /&gt;
 from keras.layers import Dense, Activation # layers and activation function&lt;br /&gt;
 import pandas as pd # read/prep dataset&lt;br /&gt;
 pd.options.mode.chained_assignment = None # removes warning&lt;br /&gt;
 import numpy as np # read/prep dataset&lt;br /&gt;
 import sklearn.model_selection as sk # dataset splitting&lt;br /&gt;
 import tensorflow as tf # for model&lt;br /&gt;
 import seaborn as sns # plotting&lt;br /&gt;
 from sklearn.metrics import confusion_matrix # confusion matrix&lt;br /&gt;
 from matplotlib import pyplot as plt # plotting&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Read the dataset ===&lt;br /&gt;
&lt;br /&gt;
First we need to read the data, for that we can use the predefined function from pandas &#039;read_csv&#039;&lt;br /&gt;
 logfile_features = pd.read_csv(path)&lt;br /&gt;
Afterwards we replace the infinite values with nans and drop them all together&lt;br /&gt;
 logfile_features.replace([np.inf, -np.inf], np.nan, inplace=True)&lt;br /&gt;
 logfile_features.dropna(inplace=True)&lt;br /&gt;
Our dataset has labels which define if its an attack or not, so we replace them with numericals (0 and 1)&lt;br /&gt;
&lt;br /&gt;
In our case Benign is for standard user traffic and DoS attacks-Slowloris and DoS attacks-GoldenEye is for traffic where a DoS attack occured&lt;br /&gt;
 logfile_features[&amp;quot;Label&amp;quot;].replace({&amp;quot;Benign&amp;quot;: 0, &amp;quot;DoS attacks-Slowloris&amp;quot;: 1, &amp;quot;DoS attacks-GoldenEye&amp;quot;: 1}, inplace=True)&lt;br /&gt;
Next we shuffle our dataset&lt;br /&gt;
 logfile_features = logfile_features.sample(frac=1) &lt;br /&gt;
&lt;br /&gt;
Now we need to split our data into 3 parts: Training data (60%), Test data (20%) and Validation data (20%).&lt;br /&gt;
To do that we use the following methods&lt;br /&gt;
 train_dataset, temp_test_dataset = sk.train_test_split(logfile_features, test_size=0.4)&lt;br /&gt;
 test_dataset, valid_dataset = sk.train_test_split(temp_test_dataset, test_size=0.5)&lt;br /&gt;
&lt;br /&gt;
Next we extract the labels from the actual dataset, we need them extra for our training&lt;br /&gt;
 train_labels = train_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 test_labels = test_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 valid_labels = valid_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
&lt;br /&gt;
To norm our data correctly we need to get the stats of our training data (mean and standard deviation)&lt;br /&gt;
 train_stats = train_dataset.describe()&lt;br /&gt;
 train_stats = train_stats.transpose()&lt;br /&gt;
&lt;br /&gt;
For norming we use a following method&lt;br /&gt;
 def norm(x, stats):&lt;br /&gt;
     return (x - stats[&#039;mean&#039;]) / stats[&#039;std&#039;]&lt;br /&gt;
This method can then be used the following way&lt;br /&gt;
  normed_train_data = norm(train_dataset, train_stats)&lt;br /&gt;
  normed_test_data = norm(test_dataset, train_stats)&lt;br /&gt;
  normed_valid_dataset = norm(valid_dataset, train_stats)&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Create a model ===&lt;br /&gt;
&lt;br /&gt;
First we need to create a sequential model, which can be trained later&lt;br /&gt;
 model = Sequential()&lt;br /&gt;
&lt;br /&gt;
The next step is to create an input layer with exactly as many nodes as features in our training data&lt;br /&gt;
  model.add(Dense(normed_train_data.shape[1],input_shape=(normed_train_data.shape[1],))&lt;br /&gt;
&lt;br /&gt;
Next a hidden layer consisting of 128 nodes with the ReLU (Rectified Linear Unit) activation function&lt;br /&gt;
 model.add(Dense(128, Activation(&#039;relu&#039;)))&lt;br /&gt;
&lt;br /&gt;
And finally the output layer consisting of 1 node which represents &#039;attack&#039; or &#039;no attack&#039;&lt;br /&gt;
 model.add(Dense(1))&lt;br /&gt;
&lt;br /&gt;
Now we could change the learning rate to a specific value, but we just leave it at the default 0.001&lt;br /&gt;
 learning_rate = 0.001&lt;br /&gt;
For the optimizer we just use the Adam Optimizer with the pre-defined learning rate&lt;br /&gt;
 optimizer = tf.optimizers.Adam(learning_rate)&lt;br /&gt;
&lt;br /&gt;
Lastly we need to compile the model, for the loss function we use BinaryCrossentropy, our optimizer and the metric should be the accuarcy of the model&lt;br /&gt;
 model.compile(loss=tf.keras.losses.BinaryCrossentropy(from_logits=True), &lt;br /&gt;
   optimizer=optimizer,&lt;br /&gt;
   metrics=[&#039;accuracy&#039;])&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Train the model ===&lt;br /&gt;
&lt;br /&gt;
First we set our epochs, a complete pass of the normed training data through the model, and our batch size, after how many datapoints the model gets updated&lt;br /&gt;
 EPOCHS = 5000&lt;br /&gt;
 batch_size = 1024&lt;br /&gt;
&lt;br /&gt;
To not have to wait for 5000 training epochs to finish and to prevent overfitting we can set an early stop&lt;br /&gt;
 es = EarlyStopping(monitor=&#039;val_loss&#039;, mode=&#039;min&#039;, verbose=1, patience=2)&lt;br /&gt;
&lt;br /&gt;
Finally the training, model fitting, can start&lt;br /&gt;
 with tf.device(&#039;/CPU:0&#039;): &lt;br /&gt;
    # with tf.device(&#039;/GPU:0&#039;): # wenn man mit der Grafikkarte trainieren will&lt;br /&gt;
    history = model.fit(&lt;br /&gt;
        normed_train_data,&lt;br /&gt;
        train_labels,&lt;br /&gt;
        batch_size=batch_size,&lt;br /&gt;
        epochs=EPOCHS,&lt;br /&gt;
        verbose=1,&lt;br /&gt;
        shuffle=True,&lt;br /&gt;
        steps_per_epoch=int(normed_train_data.shape[0] / batch_size),&lt;br /&gt;
        validation_data=(normed_valid_dataset, valid_labels), callbacks=[es],&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Plot the results ===&lt;br /&gt;
After the training has been completed you can easily plot the accuarcy and validation accuracy during the training using&lt;br /&gt;
 plt.plot(history.history[&#039;accuracy&#039;])&lt;br /&gt;
 plt.plot(history.history[&#039;val_accuracy&#039;])&lt;br /&gt;
 plt.title(&#039;model accuracy&#039;)&lt;br /&gt;
 plt.ylabel(&#039;accuracy&#039;)&lt;br /&gt;
 plt.xlabel(&#039;epoch&#039;)&lt;br /&gt;
 plt.legend([&#039;Train&#039;, &#039;Cross-Validation&#039;], loc=&#039;upper left&#039;)&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
To show the accuarcy when tested against the test data, meaning data the model didn&#039;t train with, we can use a confusion matrix the following&lt;br /&gt;
 ax = plt.subplot()&lt;br /&gt;
 predict_results = model.predict(normed_test_data)&lt;br /&gt;
 predict_results = (predict_results &amp;gt; 0.5)&lt;br /&gt;
 cm = confusion_matrix(test_labels, predict_results)&lt;br /&gt;
 ax.set_xlabel(&#039;Predicted labels&#039;)&lt;br /&gt;
 ax.set_ylabel(&#039;True labels&#039;)&lt;br /&gt;
 ax.set_title(&#039;Confusion Matrix&#039;)&lt;br /&gt;
 ax.xaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 ax.yaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
[[File:AI_model_accuracy.png|500px|Model Accuracy]]&lt;br /&gt;
[[File:AI_confusion_matrix.png|500px|Confusion Matrix]]&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10346</id>
		<title>AI: Anomaly Detection in logfiles</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=AI:_Anomaly_Detection_in_logfiles&amp;diff=10346"/>
		<updated>2022-07-13T14:53:36Z</updated>

		<summary type="html">&lt;p&gt;ARessl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;border: 1px solid #8a6d3b; background-color: #fcf8e3; color: #8a6d3b; padding: 5px 10px; margin-bottom: 5px; text-align: justify&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;#10148; IMPORTANT: This page is still under construction.&amp;lt;/div&amp;gt;&lt;br /&gt;
== Summary == &lt;br /&gt;
&lt;br /&gt;
This guide will create a basic AI model to perform binary classification in order to detect anomalies in logfiles.&lt;br /&gt;
This AI model is also suitable for the [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Packages: TensorFlow, Keras, Pandas, sklearn, numpy, seaborn, matplotlib&lt;br /&gt;
* Software: Pycharm or any other python editor&lt;br /&gt;
* Dataset: We used the following [https://www.unb.ca/cic/datasets/ids-2018.html Dataset]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 0 - Import the needed packages/libraries ===&lt;br /&gt;
&lt;br /&gt;
 from keras.callbacks import EarlyStopping, ModelCheckpoint # for training&lt;br /&gt;
 from keras.models import Sequential, load_model # for model&lt;br /&gt;
 from keras.layers import Dense, Activation # layers and activation function&lt;br /&gt;
 import pandas as pd # read/prep dataset&lt;br /&gt;
 pd.options.mode.chained_assignment = None # removes warning&lt;br /&gt;
 import numpy as np # read/prep dataset&lt;br /&gt;
 import sklearn.model_selection as sk # dataset splitting&lt;br /&gt;
 import tensorflow as tf # for model&lt;br /&gt;
 import seaborn as sns # plotting&lt;br /&gt;
 from sklearn.metrics import confusion_matrix # confusion matrix&lt;br /&gt;
 from matplotlib import pyplot as plt # plotting&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Read the dataset ===&lt;br /&gt;
&lt;br /&gt;
First we need to read the data, for that we can use the predefined function from pandas &#039;read_csv&#039;&lt;br /&gt;
 logfile_features = pd.read_csv(path)&lt;br /&gt;
Afterwards we replace the infinite values with nans and drop them all together&lt;br /&gt;
 logfile_features.replace([np.inf, -np.inf], np.nan, inplace=True)&lt;br /&gt;
 logfile_features.dropna(inplace=True)&lt;br /&gt;
Our dataset has labels which define if its an attack or not, so we replace them with numericals (0 and 1)&lt;br /&gt;
&lt;br /&gt;
In our case Benign is for standard user traffic and DoS attacks-Slowloris and DoS attacks-GoldenEye is for traffic where a DoS attack occured&lt;br /&gt;
 logfile_features[&amp;quot;Label&amp;quot;].replace({&amp;quot;Benign&amp;quot;: 0, &amp;quot;DoS attacks-Slowloris&amp;quot;: 1, &amp;quot;DoS attacks-GoldenEye&amp;quot;: 1}, inplace=True)&lt;br /&gt;
Next we shuffle our dataset&lt;br /&gt;
 logfile_features = logfile_features.sample(frac=1) &lt;br /&gt;
&lt;br /&gt;
Now we need to split our data into 3 parts: Training data (60%), Test data (20%) and Validation data (20%).&lt;br /&gt;
To do that we use the following methods&lt;br /&gt;
 train_dataset, temp_test_dataset = sk.train_test_split(logfile_features, test_size=0.4)&lt;br /&gt;
 test_dataset, valid_dataset = sk.train_test_split(temp_test_dataset, test_size=0.5)&lt;br /&gt;
&lt;br /&gt;
Next we extract the labels from the actual dataset, we need them extra for our training&lt;br /&gt;
 train_labels = train_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 test_labels = test_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
 valid_labels = valid_dataset.pop(&#039;Label&#039;)&lt;br /&gt;
&lt;br /&gt;
To norm our data correctly we need to get the stats of our training data (mean and standard deviation)&lt;br /&gt;
 train_stats = train_dataset.describe()&lt;br /&gt;
 train_stats = train_stats.transpose()&lt;br /&gt;
&lt;br /&gt;
For norming we use a following method&lt;br /&gt;
 def norm(x, stats):&lt;br /&gt;
     return (x - stats[&#039;mean&#039;]) / stats[&#039;std&#039;]&lt;br /&gt;
This method can then be used the following way&lt;br /&gt;
  normed_train_data = norm(train_dataset, train_stats)&lt;br /&gt;
  normed_test_data = norm(test_dataset, train_stats)&lt;br /&gt;
  normed_valid_dataset = norm(valid_dataset, train_stats)&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Create a model ===&lt;br /&gt;
&lt;br /&gt;
First we need to create a sequential model, which can be trained later&lt;br /&gt;
 model = Sequential()&lt;br /&gt;
&lt;br /&gt;
The next step is to create an input layer with exactly as many nodes as features in our training data&lt;br /&gt;
  model.add(Dense(normed_train_data.shape[1],input_shape=(normed_train_data.shape[1],))&lt;br /&gt;
&lt;br /&gt;
Next a hidden layer consisting of 128 nodes with the ReLU (Rectified Linear Unit) activation function&lt;br /&gt;
 model.add(Dense(128, Activation(&#039;relu&#039;)))&lt;br /&gt;
&lt;br /&gt;
And finally the output layer consisting of 1 node which represents &#039;attack&#039; or &#039;no attack&#039;&lt;br /&gt;
 model.add(Dense(1))&lt;br /&gt;
&lt;br /&gt;
Now we could change the learning rate to a specific value, but we just leave it at the default 0.001&lt;br /&gt;
 learning_rate = 0.001&lt;br /&gt;
For the optimizer we just use the Adam Optimizer with the pre-defined learning rate&lt;br /&gt;
 optimizer = tf.optimizers.Adam(learning_rate)&lt;br /&gt;
&lt;br /&gt;
Lastly we need to compile the model, for the loss function we use BinaryCrossentropy, our optimizer and the metric should be the accuarcy of the model&lt;br /&gt;
 model.compile(loss=tf.keras.losses.BinaryCrossentropy(from_logits=True), &lt;br /&gt;
   optimizer=optimizer,&lt;br /&gt;
   metrics=[&#039;accuracy&#039;])&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - Train the model ===&lt;br /&gt;
&lt;br /&gt;
First we set our epochs, a complete pass of the normed training data through the model, and our batch size, after how many datapoints the model gets updated&lt;br /&gt;
 EPOCHS = 5000&lt;br /&gt;
 batch_size = 1024&lt;br /&gt;
&lt;br /&gt;
To not have to wait for 5000 training epochs to finish and to prevent overfitting we can set an early stop&lt;br /&gt;
 es = EarlyStopping(monitor=&#039;val_loss&#039;, mode=&#039;min&#039;, verbose=1, patience=2)&lt;br /&gt;
&lt;br /&gt;
Finally the training, model fitting, can start&lt;br /&gt;
 with tf.device(&#039;/CPU:0&#039;): &lt;br /&gt;
    # with tf.device(&#039;/GPU:0&#039;): # wenn man mit der Grafikkarte trainieren will&lt;br /&gt;
    history = model.fit(&lt;br /&gt;
        normed_train_data,&lt;br /&gt;
        train_labels,&lt;br /&gt;
        batch_size=batch_size,&lt;br /&gt;
        epochs=EPOCHS,&lt;br /&gt;
        verbose=1,&lt;br /&gt;
        shuffle=True,&lt;br /&gt;
        steps_per_epoch=int(normed_train_data.shape[0] / batch_size),&lt;br /&gt;
        validation_data=(normed_valid_dataset, valid_labels), callbacks=[es],&lt;br /&gt;
    )&lt;br /&gt;
&lt;br /&gt;
=== Step 4 - Plot the results ===&lt;br /&gt;
After the training has been completed you can easily plot the accuarcy and validation accuracy during the training using&lt;br /&gt;
 plt.plot(history.history[&#039;accuracy&#039;])&lt;br /&gt;
 plt.plot(history.history[&#039;val_accuracy&#039;])&lt;br /&gt;
 plt.title(&#039;model accuracy&#039;)&lt;br /&gt;
 plt.ylabel(&#039;accuracy&#039;)&lt;br /&gt;
 plt.xlabel(&#039;epoch&#039;)&lt;br /&gt;
 plt.legend([&#039;Train&#039;, &#039;Cross-Validation&#039;], loc=&#039;upper left&#039;)&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
To show the accuarcy when tested against the test data, meaning data the model didn&#039;t train with, we can use a confusion matrix the following&lt;br /&gt;
 ax = plt.subplot()&lt;br /&gt;
 predict_results = model.predict(normed_test_data)&lt;br /&gt;
 predict_results = (predict_results &amp;gt; 0.5)&lt;br /&gt;
 cm = confusion_matrix(test_labels, predict_results)&lt;br /&gt;
 ax.set_xlabel(&#039;Predicted labels&#039;)&lt;br /&gt;
 ax.set_ylabel(&#039;True labels&#039;)&lt;br /&gt;
 ax.set_title(&#039;Confusion Matrix&#039;)&lt;br /&gt;
 ax.xaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 ax.yaxis.set_ticklabels([&#039;No Attack&#039;, &#039;Attack&#039;])&lt;br /&gt;
 plt.show()&lt;br /&gt;
&lt;br /&gt;
[[File:AI_model_accuracy.png|500px|Model Accuracy]]&lt;br /&gt;
[[File:AI_confusion_matrix.png|500px|Confusion Matrix]]&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [[Jetson AGX Xavier Development Kit]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>ARessl</name></author>
	</entry>
</feed>