<?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=JJashari</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=JJashari"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/JJashari"/>
	<updated>2026-09-10T18:25:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10472</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10472"/>
		<updated>2022-12-26T14:50:57Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* BASIC COMMANDS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KeyCroc is Hak5&#039;s smart keylogger and a remote penetration testing tool. In May 2020 Key Croc was introduced by HAK5 founder Darren Kitchen. A hardware keylogger is a small electronic hardware device that records keyboard activity.&lt;br /&gt;
The keylogger software saves the keystrokes to a file, which he can later access remotely over the internet via the cloud from HAK5.&lt;br /&gt;
To use the keylogger, connect KeyCroc to your computer. Then connect the USB port of a standard PC compatible USB keyboard to the other end. Key Croc automatically clones the hardware identifiers of attached keyboards. Target USB plugs can emulate USB keyboards, memory, serial, and ethernet. The payload can be executed using commands written in Ducky Script 2.0. LED lights indicate the current status. Additionally, the device is WiFi enabled and SSH enabled and is priced at $119.99. The main drawback is that Key Croc can only be connected to external keyboards.&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
===Basic Commands===&lt;br /&gt;
*MATCH – specifies a pattern that must be typed to trigger payload execution&lt;br /&gt;
*SAVEKEYS – saves next or last typed keys to a specified file when a MATCH is found&lt;br /&gt;
*QUACK – injects keystrokes using Ducky Script 2.0&lt;br /&gt;
*QUACKFILE – injects keystrokes from specified file&lt;br /&gt;
*ATTACKMODE – specifies which device type to emulate&lt;br /&gt;
*LED – controls the multi-color LED&lt;br /&gt;
*GET_VARS – returns useful variables for use in payload&lt;br /&gt;
*INSTALL_EXTRAS – installs optional &lt;br /&gt;
*WAIT_FOR_LOOT – halts payload until specified loot is received&lt;br /&gt;
*C2NOTIFY – sends a notification to the configured Cloud C2 server&lt;br /&gt;
*C2EXFIL – sends a file to the configured Cloud C2 server&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
&lt;br /&gt;
[[File:Sudo-pass.png | 400px]]&lt;br /&gt;
&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10471</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10471"/>
		<updated>2022-12-26T14:50:24Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Key Croc Basics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KeyCroc is Hak5&#039;s smart keylogger and a remote penetration testing tool. In May 2020 Key Croc was introduced by HAK5 founder Darren Kitchen. A hardware keylogger is a small electronic hardware device that records keyboard activity.&lt;br /&gt;
The keylogger software saves the keystrokes to a file, which he can later access remotely over the internet via the cloud from HAK5.&lt;br /&gt;
To use the keylogger, connect KeyCroc to your computer. Then connect the USB port of a standard PC compatible USB keyboard to the other end. Key Croc automatically clones the hardware identifiers of attached keyboards. Target USB plugs can emulate USB keyboards, memory, serial, and ethernet. The payload can be executed using commands written in Ducky Script 2.0. LED lights indicate the current status. Additionally, the device is WiFi enabled and SSH enabled and is priced at $119.99. The main drawback is that Key Croc can only be connected to external keyboards.&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
===BASIC COMMANDS===&lt;br /&gt;
*MATCH – specifies a pattern that must be typed to trigger payload execution&lt;br /&gt;
*SAVEKEYS – saves next or last typed keys to a specified file when a MATCH is found&lt;br /&gt;
*QUACK – injects keystrokes using Ducky Script 2.0&lt;br /&gt;
*QUACKFILE – injects keystrokes from specified file&lt;br /&gt;
*ATTACKMODE – specifies which device type to emulate&lt;br /&gt;
*LED – controls the multi-color LED&lt;br /&gt;
*GET_VARS – returns useful variables for use in payload&lt;br /&gt;
*INSTALL_EXTRAS – installs optional &lt;br /&gt;
*WAIT_FOR_LOOT – halts payload until specified loot is received&lt;br /&gt;
*C2NOTIFY – sends a notification to the configured Cloud C2 server&lt;br /&gt;
*C2EXFIL – sends a file to the configured Cloud C2 server&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
&lt;br /&gt;
[[File:Sudo-pass.png | 400px]]&lt;br /&gt;
&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10470</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10470"/>
		<updated>2022-12-26T14:46:55Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Key Croc Basics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KeyCroc is Hak5&#039;s smart keylogger and a remote penetration testing tool. In May 2020 Key Croc was introduced by HAK5 founder Darren Kitchen. A hardware keylogger is a small electronic hardware device that records keyboard activity.&lt;br /&gt;
The keylogger software saves the keystrokes to a file, which he can later access remotely over the internet via the cloud from HAK5.&lt;br /&gt;
To use the keylogger, connect KeyCroc to your computer. Then connect the USB port of a standard PC compatible USB keyboard to the other end. Key Croc automatically clones the hardware identifiers of attached keyboards. Target USB plugs can emulate USB keyboards, memory, serial, and ethernet. The payload can be executed using commands written in Ducky Script 2.0. LED lights indicate the current status. Additionally, the device is WiFi enabled and SSH enabled and is priced at $119.99. The main drawback is that Key Croc can only be connected to external keyboards.&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
&lt;br /&gt;
[[File:Sudo-pass.png | 400px]]&lt;br /&gt;
&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10469</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10469"/>
		<updated>2022-12-26T14:46:39Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Key Croc Basics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
KeyCroc is Hak5&#039;s smart keylogger and a remote penetration testing tool. In May 2020 Key Croc was introduced by HAK5 founder Darren Kitchen. A hardware keylogger is a small electronic hardware device that records keyboard activity.&lt;br /&gt;
The keylogger software saves the keystrokes to a file, which he can later access remotely over the internet via the cloud from HAK5.&lt;br /&gt;
To use the keylogger, connect KeyCroc to your computer. Then connect the USB port of a standard PC compatible USB keyboard to the other end. Key Croc automatically clones the hardware identifiers of attached keyboards. Target USB plugs can emulate USB keyboards, memory, serial, and ethernet. The payload can be executed using commands written in Ducky Script 2.0. LED lights indicate the current status. Additionally, the device is WiFi enabled and SSH enabled and is priced at $119.99. The main drawback is that Key Croc can only be connected to external keyboards.&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
&lt;br /&gt;
[[File:Sudo-pass.png | 400px]]&lt;br /&gt;
&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10468</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10468"/>
		<updated>2022-12-26T14:39:43Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Payloads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
&lt;br /&gt;
[[File:Sudo-pass.png | 400px]]&lt;br /&gt;
&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10467</id>
		<title>Hak5 Key Croc</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Hak5_Key_Croc&amp;diff=10467"/>
		<updated>2022-12-26T14:36:31Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Payloads */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Summary==&lt;br /&gt;
This article describes the Hak5 Key Croc, a smart hardware keylogging device. &lt;br /&gt;
[[File:keycroc_photo.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Croc Basics==&lt;br /&gt;
[[File:Keycroc_specs.png]]&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Key Croc contains a Quad Core ARM processor, 512 MB RAM, and an 8 GB SSD. It can be connected to the internet by entering a Wi-Fi name and password into its config file. The Key Croc has to be connected to the target device via USB. Once it is installed between a PC and its keyboard, it starts its booting process, indicated by the LED changing its color. After it has booted, the LED is turned off and the Key Croc is now in Attack Mode. &lt;br /&gt;
  &lt;br /&gt;
===Attack Mode===&lt;br /&gt;
Attack Mode is visible from the outside by the LED being turned off. In this mode, the Key Croc clones the hardware identifier of the keyboard connected to it and poses as this keyboard. Thus, each keystroke entered via the keyboard is sent to the PC, but also recorded in the Key Croc’s loot file. Payloads may be triggered by typing the required keyword. Pressing the hidden button on the back of the Key Croc will cause it to enter Arming Mode.&lt;br /&gt;
&lt;br /&gt;
===Arming Mode===&lt;br /&gt;
Arming Mode is visible from the outside by the LED blinking blue. In Arming Mode, no further keystrokes are recorded and payloads can’t be activated anymore. Instead, the Key Croc emulates a USB flash disk and a serial device, allowing the user to access it via the device’s file manager. A password and timeout to enter the Arming Mode can be configured in the Key Croc’s config file, if they aren’t configured the Key Croc will enter Arming Mode as soon as the button is pressed.&lt;br /&gt;
&lt;br /&gt;
===Key Croc&#039;s File System===&lt;br /&gt;
*config.txt – configuration file&lt;br /&gt;
*upgrade.html – shortcut to software update documentation&lt;br /&gt;
*version.txt – current version&lt;br /&gt;
*docs/ – license and quick start guide&lt;br /&gt;
*languages/ – hosts keymap files used for recording and injection&lt;br /&gt;
*library/ – hosts inactive payloads&lt;br /&gt;
*loot/ – hosts captured keystrokes and other logs&lt;br /&gt;
*payloads/ – hosts active payloads&lt;br /&gt;
*tools/ – used to install additional packages&lt;br /&gt;
&lt;br /&gt;
===LED Colors===&lt;br /&gt;
&lt;br /&gt;
*Green – Booting up&lt;br /&gt;
*Red – Error&lt;br /&gt;
*Cyan – Configuring Wi-Fi per config.txt&lt;br /&gt;
*Magenta – Configuring Keylogger&lt;br /&gt;
*Blue – Arming Mode&lt;br /&gt;
*Yellow – Disk Full&lt;br /&gt;
*White – No Keyboard Detected&lt;br /&gt;
&lt;br /&gt;
==Payloads==&lt;br /&gt;
[[File:Keycroc_payload.png]]&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
The Key Croc offers the possibility to execute payloads on the targeted device. To be able to get activated, the payloads have to exist as either .txt or .sh files in the payloads/ directory on the Key Croc. Payloads that aren’t currently used can be stored in the library/ directory. &lt;br /&gt;
Most payloads activate on MATCH, meaning that if a certain string is typed, the payload will be triggered. The date and time of activation of a payload is logged in the associated log file in the loot/ folder. The language used in the payloads is Ducky Script 2.0, or QUACK.&lt;br /&gt;
Payloads can be written by the pentester themselves, or downloaded from the Hak5 GitHub repository.&lt;br /&gt;
[[File:Sudo-pass.png]]&lt;br /&gt;
This example shows how to get the password of a user on an Ubuntu machine.&lt;br /&gt;
First you need to tell it to wait for the &amp;quot;sudo&amp;quot; string. If the user types &amp;quot;sudo&amp;quot;, the victim&#039;s keystrokes are recorded. SAVEKEYS UNTIL,  like MATCH, can be a simple string or a complex regular expression. As the name suggests, it saves the entered key until it matches.&lt;br /&gt;
This little regex basically says that the key will be saved until ENTER is pressed twice. First his ENTER key is known to be at the end of the sudo command. Then enter your password when prompted. So it checks passwords using all regular expressions (.*?) until the last statement is the final ENTER key.&lt;br /&gt;
In this case, the WAIT_FOR_LOOT command tells the payload to wait until the specified loot file is written. Use this awk -F to create a new file containing only the extracted password and send it to Cloud C2 with a notification.&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
Additional pentesting tools like Metasploit might be installed on the Key Croc. Installation requires an active WiFi connection (which can be configured in the config.txt) and can be done via SSH, Cloud C2, or serial connection.&lt;br /&gt;
After installation, these tools can be found in the tools/ directory.&lt;br /&gt;
==Accessing Key Croc==&lt;br /&gt;
&lt;br /&gt;
The Key Croc can be accessed via its USB flash disk, using any device&#039;s file manager. This enables the user to configure the Key Croc, check its loot files and change its active payloads. If a WiFi network and password is entered into the Key Croc&#039;s configuration file and it is configured to connect to a Cloud C2 server, captured keystrokes may also be streamed to this server. The Cloud C2 server also offers the possibility for a user to send payloads remotely to the Key Croc. Another way to remotely access the Key Croc is per SSH connection, which also has to be configured in the config.txt first. &lt;br /&gt;
Finally, having a serial console connection to the Key Croc enables the user to access its Linux shell. &lt;br /&gt;
Additional pentesting tools like Metasploit may be installed via Cloud C2, SSH, or serial console connection using the INSTALL_EXTRAS command.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
[https://docs.hak5.org/hc/en-us/categories/360003797793-Key-Croc Hak5 Key Croc Documentation]&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Pictures&amp;quot;&amp;gt;https://hak5.org/products/key-croc&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Payload&amp;quot;&amp;gt;https://github.com/hak5/keycroc-payloads/blob/master/payloads/examples/example_text-expander.txt&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Sudo-pass.png&amp;diff=10466</id>
		<title>File:Sudo-pass.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Sudo-pass.png&amp;diff=10466"/>
		<updated>2022-12-26T14:25:32Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10148</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=10148"/>
		<updated>2022-06-21T16:42:32Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10147</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=10147"/>
		<updated>2022-06-21T12:51:44Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately 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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10146</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=10146"/>
		<updated>2022-06-21T12:51:22Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately 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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10145</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=10145"/>
		<updated>2022-06-21T12:50:40Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately 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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10144</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=10144"/>
		<updated>2022-06-21T12:49:46Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately 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.&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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10143</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=10143"/>
		<updated>2022-06-21T12:48:28Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately 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. For example who uses it 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.&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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10142</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=10142"/>
		<updated>2022-06-21T12:41:14Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10141</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=10141"/>
		<updated>2022-06-21T12:40:27Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships.  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;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.&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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10140</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=10140"/>
		<updated>2022-06-21T12:32:33Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* References */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships.  These elements should be considered: IoT device, cloud, mobile application, network interfaces, software, use of Encryption, use of Authentication, physical security, and USB ports. &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.&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. &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;
&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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10139</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=10139"/>
		<updated>2022-06-21T12:20:12Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships.  These elements should be considered: IoT device, cloud, mobile application, network interfaces, software, use of Encryption, use of Authentication, physical security, and USB ports. &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.&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. &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;
&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://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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10138</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=10138"/>
		<updated>2022-06-21T12:16:42Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* 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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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. &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;
&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://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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10137</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=10137"/>
		<updated>2022-06-18T17:35:10Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
&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://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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10136</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=10136"/>
		<updated>2022-06-18T17:33:16Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
&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 cannot 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://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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10135</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=10135"/>
		<updated>2022-06-18T17:24:17Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
&lt;br /&gt;
The exploit tool 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 cannot 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://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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10134</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=10134"/>
		<updated>2022-06-18T17:09:57Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10133</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=10133"/>
		<updated>2022-06-18T17:08:59Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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 tool 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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10132</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=10132"/>
		<updated>2022-06-18T17:06:48Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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 tool has detected only one open port on TP-Link&#039;s with the service abyss. 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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10131</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=10131"/>
		<updated>2022-06-18T16:58:47Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
== 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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10130</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=10130"/>
		<updated>2022-06-18T16:57:56Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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. 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;
== 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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10129</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=10129"/>
		<updated>2022-06-18T16:57:39Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
Kasa uses Amazon Web Services (AWS) for cloud infrastructure and storage, and Evziz uses its own Evziz Cloud.  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. 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;
== 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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10128</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=10128"/>
		<updated>2022-06-18T16:56:56Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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. Kasa and Evziz cameras use cloud storage. &lt;br /&gt;
Kasa uses Amazon Web Services (AWS) for cloud infrastructure and storage, and Evziz uses its own Evziz Cloud.  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. 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;
== 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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10127</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=10127"/>
		<updated>2022-06-18T16:55:41Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Report */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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. Kasa and Evziz cameras use cloud storage. &lt;br /&gt;
Kasa uses Amazon Web Services (AWS) for cloud infrastructure and storage, and Evziz uses its own Evziz Cloud.  TP-Link uses this information 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. 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;
== 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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10126</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=10126"/>
		<updated>2022-06-18T12:50:17Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10125</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=10125"/>
		<updated>2022-06-18T12:48:26Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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 | 400px]]&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 | 400px]]&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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Nessus-abus2.png&amp;diff=10124</id>
		<title>File:Nessus-abus2.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Nessus-abus2.png&amp;diff=10124"/>
		<updated>2022-06-18T12:47:13Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-abus.png&amp;diff=10123</id>
		<title>File:Wireshark-abus.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-abus.png&amp;diff=10123"/>
		<updated>2022-06-18T12:46:45Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10122</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=10122"/>
		<updated>2022-06-18T10:57:53Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* References */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.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;
&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;
* 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>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10121</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=10121"/>
		<updated>2022-06-18T10:56:43Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* References */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.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;
&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;
* 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.exploit-db.com/&lt;br /&gt;
* https://github.com/vanhauser-thc/thc-hydra&lt;br /&gt;
* https://github.com/lanjelot/patator&lt;br /&gt;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10120</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=10120"/>
		<updated>2022-06-18T10:56:22Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* References */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
* https://www.kali.org/tools/wireshark/&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10119</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=10119"/>
		<updated>2022-06-18T10:52:42Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10118</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=10118"/>
		<updated>2022-06-18T10:50:40Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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 community packet or 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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10117</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=10117"/>
		<updated>2022-06-18T10:50:11Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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 community packet or 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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-ev.png | 600px]]&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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-ev.png&amp;diff=10116</id>
		<title>File:Wireshark-ev.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-ev.png&amp;diff=10116"/>
		<updated>2022-06-18T10:49:21Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10115</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=10115"/>
		<updated>2022-06-18T10:46:05Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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 community packet or 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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-e.png | 600px]]&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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10114</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=10114"/>
		<updated>2022-06-18T10:45:33Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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 community packet or 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&lt;br /&gt;
|-&lt;br /&gt;
| [[File:wireshark-tplink.png | 400px]] || [[File:wireshark-e.png | 400px]]&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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-tplink.png&amp;diff=10113</id>
		<title>File:Wireshark-tplink.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-tplink.png&amp;diff=10113"/>
		<updated>2022-06-18T10:42:21Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-e.png&amp;diff=10112</id>
		<title>File:Wireshark-e.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Wireshark-e.png&amp;diff=10112"/>
		<updated>2022-06-18T10:42:13Z</updated>

		<summary type="html">&lt;p&gt;JJashari: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10111</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=10111"/>
		<updated>2022-06-18T10:41:33Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-abus.png | 800px]]&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 community packet or 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;
=== 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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10110</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=10110"/>
		<updated>2022-06-18T09:43:15Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Exploitation Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10109</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=10109"/>
		<updated>2022-06-18T09:42:39Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* References */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-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 | 400px]] || [[File:ssh-abus.jpg | 400px]]&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;
&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;
* 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.metasploit.com/&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;
* https://www.speedguide.net/ports.php&lt;br /&gt;
&lt;br /&gt;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10108</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=10108"/>
		<updated>2022-06-18T09:41:31Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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-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 | 400px]] || [[File:ssh-abus.jpg | 400px]]&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;
&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;
* 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.metasploit.com/&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;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10107</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=10107"/>
		<updated>2022-06-18T09:40:33Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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 | 600px]] || [[File:nessus-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 | 400px]] || [[File:ssh-abus.jpg | 400px]]&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;
&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;
* 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.metasploit.com/&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;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=IOT_Security:_Pentesting_on_IP_Cameras&amp;diff=10106</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=10106"/>
		<updated>2022-06-18T09:39:56Z</updated>

		<summary type="html">&lt;p&gt;JJashari: /* Scanning Tools */&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 approximately the software and its infrastructure. We recommend creating an architectural sketch (deployment diagram). It should include at least the subnets, firewalls, gateways, services/servers, and, above all, the system&#039;s communication relationships. &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.&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 | 400px]] || [[File:nessus-e.png | 400px]] || [[File:nessus-abus.png | 400px]]&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 | 400px]] || [[File:ssh-abus.jpg | 400px]]&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;
&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;
* 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.metasploit.com/&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;
[[Category:Pentesting]]&lt;/div&gt;</summary>
		<author><name>JJashari</name></author>
	</entry>
</feed>