<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Sheila A. Berta - UnaPibaGeek]]></title><description><![CDATA[I break stuff...]]></description><link>https://blog.unapibageek.io</link><image><url>https://substackcdn.com/image/fetch/$s_!73sm!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d9d34ee-9314-421c-949e-6433ab058fad_1174x1174.png</url><title>Sheila A. Berta - UnaPibaGeek</title><link>https://blog.unapibageek.io</link></image><generator>Substack</generator><lastBuildDate>Thu, 07 May 2026 11:11:11 GMT</lastBuildDate><atom:link href="https://blog.unapibageek.io/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Sheila A. Berta]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[unapibageek@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[unapibageek@substack.com]]></itunes:email><itunes:name><![CDATA[Sheila A. Berta]]></itunes:name></itunes:owner><itunes:author><![CDATA[Sheila A. Berta]]></itunes:author><googleplay:owner><![CDATA[unapibageek@substack.com]]></googleplay:owner><googleplay:email><![CDATA[unapibageek@substack.com]]></googleplay:email><googleplay:author><![CDATA[Sheila A. Berta]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Tips for the CKS: Certified Kubernetes Security Specialist ]]></title><description><![CDATA[What should you study to obtain the Kubernetes Security Specialist certification? Here are some tips.]]></description><link>https://blog.unapibageek.io/p/tips-for-the-cks-certified-kubernetes</link><guid isPermaLink="false">https://blog.unapibageek.io/p/tips-for-the-cks-certified-kubernetes</guid><dc:creator><![CDATA[Sheila A. Berta]]></dc:creator><pubDate>Sun, 11 Feb 2024 19:30:11 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Uwg5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I just accomplished something I've been promising myself for so long: obtaining the <strong>CKS</strong> (Certified Kubernetes Security Specialist) certification! Although I believed I had the knowledge to pass this exam for a few years, I've been postponing it due to being busy with other commitments. Finally, just before my CKA (Certified Kubernetes Administrator) certification expired, I took the CKS exam last Friday and successfully passed it! Yay!</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Uwg5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Uwg5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 424w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 848w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 1272w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Uwg5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png" width="1456" height="1082" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1082,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1089785,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Uwg5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 424w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 848w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 1272w, https://substackcdn.com/image/fetch/$s_!Uwg5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a437ba1-16f0-4b2a-b9af-b3ba2ea38cf9_1922x1428.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4>Exam Format</h4><p>The <strong>Certified Kubernetes Security Specialist</strong> exam is hands-on. You will need to complete approximately 16 tasks within two hours. Upon starting your exam, you&#8217;ll get access to a couple of Kubernetes clusters where you can perform the requested tasks. There are no theoretical questions or multiple-choice options; you will simply have access to a VM through which you can operate on different Kubernetes clusters.</p><p>The exam includes live proctoring; a person will be watching you throughout the two hours, to ensure that you do not communicate with others, have no books or papers nearby, and do not open any applications other than the exam application. They are very strict! The only resource you are allowed to consult is the official Kubernetes documentation, accessible from the exam's VM. </p><h4>Requirements</h4><p>The <strong>CKA</strong> (Certified Kubernetes Administrator) certification is a prerequisite for taking the CKS exam. This means you will need to pass the CKA exam first. This requirement makes sense, after all, you cannot properly secure a technology you're not familiar with. The Certified Kubernetes Administrator exam ensures that you have real experience with this technology.</p><p>The CKA exam format is the same as that of the CKS, you&#8217;ll be prompted to complete about 16 tasks within two hours as well. In the case of the CKA, the tasks are related to cluster administration (installing, upgrading, and troubleshooting Kubernetes components) as well as creating the most common Kubernetes objects, such as Pods, Deployments, DaemonSets, ConfigMaps, Services, Volumes, and Volume Claims, Ingress controllers, etc. If you use Kubernetes, these objects should already be familiar to you, as they are commonly used in any Kubernetes workload.</p><h4>How to Prepare for the CKS Exam</h4><p>Here are the topics I encourage you to study (and practice!):</p><ul><li><p><strong>Secrets:</strong> Practice creating generic secrets in imperative mode and mounting them as a volume within a pod.<br>Documentation: <a href="https://kubernetes.io/docs/concepts/configuration/secret/">https://kubernetes.io/docs/concepts/configuration/secret/</a>.</p></li><li><p><strong>Network Policies: </strong>Dive into creating network policies to filter and block incoming traffic to a specific pod. Make sure you know how to use Pod Selectors and Namespace Selectors.<br>Documentation: <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/">https://kubernetes.io/docs/concepts/services-networking/network-policies/</a>.</p></li><li><p><strong>Service Accounts:</strong> Practice creating Service Accounts without the automatic mounting of the token within the Pod. Learn how to configure a Pod to use a specified Service Account.<br>Documentation: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/">https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/</a>.</p></li><li><p><strong>Roles and Role Bindings:</strong> Practice creating roles with a variety of permissions, and create the necessary Role Binding object to tie the role to a Service Account or User.<br>Documentation: <a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/">https://kubernetes.io/docs/reference/access-authn-authz/rbac/</a>.</p></li><li><p><strong>Image Scanning:</strong> Learn how to use Trivy for scanning Docker images and detect known vulnerabilities.<br>Documentation: <a href="https://github.com/aquasecurity/trivy">https://github.com/aquasecurity/trivy</a>.</p></li><li><p><strong>Containers Immutability:</strong> Practice setting up a pod with a read-only root file system and blocking privilege escalation.<br>Documentation: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">https://kubernetes.io/docs/tasks/configure-pod-container/security-context/</a>.</p></li><li><p><strong>Principle of Least Privilege:</strong> Practice configuring Pods to run with a low privileged user. Learn how to spot and disable privileged containers and drop unnecessary kernel capabilities.<br>Documentation: Idem (Security Context).</p></li><li><p><strong>AppArmor:</strong> Play around with enforcing specific AppArmor profiles and configuring them on a Pod. You might not be asked to develop an AppArmor profile from scratch, but knowing how to enforce and set one up is key.<br>Documentation: <a href="https://kubernetes.io/docs/tutorials/security/apparmor/">https://kubernetes.io/docs/tutorials/security/apparmor/</a>.</p></li><li><p><strong>Seccomp:</strong> Practice applying a seccomp profile stored on the host filesystem to a pod. Much like AppArmor, the task will likely be about configuration rather than creation.<br>Documentation: <a href="https://kubernetes.io/docs/tutorials/security/seccomp/">https://kubernetes.io/docs/tutorials/security/seccomp/</a>.</p></li><li><p><strong>Admission Controllers: </strong>Get familiar with configuring an admission controller (crafting the Admission Configuration object) for something like an Image Policy Webhook, and then sorting out the parameters for its use in the Kube API Server.<br>Documentation: <a href="https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/">https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/</a>.</p></li><li><p><strong>Best Practices for Core Components:</strong> Practice configuring the Kube API Server and core components following the recommended secure best practices. For example, enforcing authentication, opting for a secure cipher suite for internal communications, and so on.</p></li></ul><h4>Final Tips!</h4><p>Remember, the CKS is a hands-on exam; you'll need to create and/or configure all those Kubernetes features on real clusters. Therefore, practice as much as you can! I recommend renting a cluster on the cloud or installing Minikube on your local machine.</p><p>Time management is crucial; the two hours fly by with 16 tasks to complete. If you're unsure about a particular task, flag it to return to later and move on. Try to complete as many tasks as you can and save for the end those you're less certain about. In my case, I managed to complete 14 out of the 16 tasks before running out of time!</p><p>Pay close attention to the cluster context; each task must be completed on a specific cluster. I recommend that before you even start to read the task, execute the command for kubeconfig context switching (this is provided at the beginning of each task). </p><p>Be aware, the exam's VM is not user-friendly&#8230; it can be quite frustrating to perform tasks remotely connected to a VM that doesn't display in full screen, and where shortcuts don't work properly. Keep in mind the exam environment won't do you any favors.</p><p>Also, the process to launch the exam through the live proctoring application is rather cumbersome. It takes at least 20 minutes to download the app, perform the check-in, scan your room, etc. Therefore, I recommend launching the exam 20 or 30 minutes before your scheduled time.</p><p>That's all! I hope you find this guide and the tips helpful for your CKS exam preparation. I wish you the best of luck, and don't hesitate to leave a question here if you have any!</p><p></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://blog.unapibageek.io/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://blog.unapibageek.io/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Dealing with I/O when writing Nuclei 'network' templates ]]></title><description><![CDATA[How to properly deal with inputs and outputs when writing Nuclei 'network' templates (and a fix for Nuclei's core!)]]></description><link>https://blog.unapibageek.io/p/dealing-with-io-when-writing-nuclei</link><guid isPermaLink="false">https://blog.unapibageek.io/p/dealing-with-io-when-writing-nuclei</guid><dc:creator><![CDATA[Sheila A. Berta]]></dc:creator><pubDate>Sat, 23 Dec 2023 23:37:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>During my research on <a href="https://blog.unapibageek.io/p/detecting-honeypots-via-flawed-logic">honeypots detection</a>, I had to create several Nuclei templates for a variety of network protocols. I discovered that properly writing inputs and reading outputs might be slightly more complex than it seems. There are a few things to bear in mind, which I would like to share in this post. </p><p>Yet, why is this useful? <a href="https://github.com/projectdiscovery/nuclei">Nuclei</a> is extremely practical for quickly verifying vulnerabilities, misconfigurations, or whether an application responds as expected to certain HTTP or TCP packets. There are thousands of templates for HTTP requests, which are well-documented with plenty of examples. However, this is not the case for 'network' templates, we'll be delving into these today. </p><h3>INPUTS</h3><p>The input is the chunk of bytes we will send to the target application. This can be provided as an ASCII string of characters ('text') or as a hexadecimal string ('hex').</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!F-pP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!F-pP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 424w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 848w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 1272w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!F-pP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png" width="596" height="114.33469387755102" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:188,&quot;width&quot;:980,&quot;resizeWidth&quot;:596,&quot;bytes&quot;:19253,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!F-pP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 424w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 848w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 1272w, https://substackcdn.com/image/fetch/$s_!F-pP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38a3b9c2-1a7a-4016-b0bd-b07ca211bddf_980x188.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8TMy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8TMy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 424w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 848w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 1272w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8TMy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png" width="606" height="107.91780821917808" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:234,&quot;width&quot;:1314,&quot;resizeWidth&quot;:606,&quot;bytes&quot;:32750,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8TMy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 424w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 848w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 1272w, https://substackcdn.com/image/fetch/$s_!8TMy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6afeb27b-d96d-40df-a4a4-7ee59438e113_1314x234.png 1456w" sizes="100vw"></picture><div></div></div></a></figure></div><p>Inputs are a YAML array, and it is possible to specify several.  <br>For example:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!n9cH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!n9cH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 424w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 848w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 1272w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!n9cH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png" width="660" height="188.11813186813185" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:415,&quot;width&quot;:1456,&quot;resizeWidth&quot;:660,&quot;bytes&quot;:116516,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!n9cH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 424w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 848w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 1272w, https://substackcdn.com/image/fetch/$s_!n9cH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23aaf202-89c8-47ab-82ca-16ffcb682569_1760x502.png 1456w" sizes="100vw"></picture><div></div></div></a></figure></div><p>Each string will be sent one after the other to the target. You might expect the target to respond to each of these packets individually; we will delve into this shortly.</p><p>Now, you might be wondering, where do those strings I use for the input come from? It depends on what you&#8217;re testing. When using TCP packets, you will have to speak the &#8216;language&#8217; of the targeted protocol. To obtain these packets for use in your Nuclei template, you&#8217;ll likely first analyze the network traffic during your test to extract the right packets. For this, the most common tool is the popular traffic analyzer, Wireshark. For less complex protocols or simpler cases, you might want to give <a href="https://github.com/projectdiscovery/network-fingerprint">network-fingerprint</a> a try.</p><p>Generally, creating the input part of the template is quite straightforward. However, reading the output and properly matching it with your expected response can sometimes bring issues. Let's jump into it.</p><h3>OUTPUTS </h3><p>According to Nuclei&#8217;s <a href="https://github.com/projectdiscovery/nuclei/blob/main/SYNTAX-REFERENCE.md#networkrequest">syntax reference</a>, there are three properties to read the output: <code>read</code>, <code>read-size</code>, and <code>read-all</code>. The most commonly implemented are <code>read</code> and <code>read-size</code>. However, people often tend to confuse these two (well, the difference is not immediately apparent at first sight!), and incorrect usage may compromise the template's effectiveness.</p><p>In the simplest case, you might not need to specify any of those, and &#8216;<code>read-size:1024&#8217;</code> will implicitly be used (which works for most cases). Yet, what&#8217;s the actual difference between the three options?</p><p>To start with, <code>read</code> is a property of network.Input() and, in case it is used, should be placed within each input statement. On the other hand, <code>read-size</code> and <code>read-all</code> are properties of network.Request(), therefore, they are placed outside the list of inputs. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZouB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZouB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 424w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 848w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 1272w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZouB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png" width="642" height="390.7279843444227" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:622,&quot;width&quot;:1022,&quot;resizeWidth&quot;:642,&quot;bytes&quot;:79831,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZouB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 424w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 848w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 1272w, https://substackcdn.com/image/fetch/$s_!ZouB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72f3be70-146a-4543-916e-ab77b51f6ec5_1022x622.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As mentioned, <code>read-size:1024</code> will be the default. In case you need to read more bytes (because what you are looking for in the output is not within the first 1024 bytes), you can provide a different size (for example, <code>read-size:2048</code>) or simply use <code>read-all:true</code>, which will read the entire output regardless of its size. Most cases are actually resolved using the <code>read-size</code> property, so what is <code>read</code> used for? Furthermore, the template above - while still working fine in this case - is not properly structured, as using <code>read-size</code> and <code>read</code> together in this way doesn&#8217;t really make sense. </p><p>It seems there are a few cases where it could make sense to use the <code>read</code> property instead. Let&#8217;s see two examples: 1) Matching strings in the response to specific inputs; 2) Using the response from an input to create the next request.</p><h4>USING THE <code>READ</code> PROPERTY: CASE 1</h4><p>At the beginning of this post, I shared an image with an example of multiple input requests; this belongs to the <strong>ADBHoney-shell</strong> detector I developed weeks ago. It sends multiple requests to the target and then matches a chunk of bytes that comes in the response to the <em>last</em> request.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!O_vs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!O_vs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 424w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 848w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 1272w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!O_vs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png" width="670" height="347.42445054945057" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:755,&quot;width&quot;:1456,&quot;resizeWidth&quot;:670,&quot;bytes&quot;:187781,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!O_vs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 424w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 848w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 1272w, https://substackcdn.com/image/fetch/$s_!O_vs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb609d27c-610f-420c-bc34-28d2c3ceff25_1794x930.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As we can see, there is a <code>read-size:1024</code> statement in the template. It will read, as seen below, the response to all the requests up to 1024 bytes in total, and then match the expected bytes in the response.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_Wx9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_Wx9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 424w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 848w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 1272w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_Wx9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png" width="664" height="285.0274725274725" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:625,&quot;width&quot;:1456,&quot;resizeWidth&quot;:664,&quot;bytes&quot;:592223,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_Wx9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 424w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 848w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 1272w, https://substackcdn.com/image/fetch/$s_!_Wx9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9123bdb1-1eda-4b44-b088-de865bc7ecf5_1574x676.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>What if we would like to also match the string <em>'=starltexx;ro.product.model=SM-G960F'</em> that comes in the response to the <strong>second</strong> request? We could simply add one more matcher with this string, and it might work, as long as the response does not surpass 1024 bytes. However, this is where <code>read</code> plays a role! It would be best to use the <code>read</code> attribute, assign a name to the responses, and indicate to the matcher where to find each string. The code would look as follows:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8uR8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8uR8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 424w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 848w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 1272w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8uR8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png" width="688" height="582.6263736263736" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:688,&quot;bytes&quot;:341545,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8uR8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 424w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 848w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 1272w, https://substackcdn.com/image/fetch/$s_!8uR8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7bce5d5-ecf2-4451-b6fe-c233e0119cb9_1750x1482.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The first modification, outlined in red, involves reading 512 bytes from the response of the second request and naming this "info". Then, in the matchers section, we indicate to look into the part labeled 'info' for the desired string. </p><p>That was easy. However, identifying the last chunk of bytes has now become slightly more complicated in this way. This is because ADB responds with two packets (OKAY and WRTE statements) to our last request. Therefore, if we want to match bytes in the last packet (WRTE), we first need to read and &#8216;skip' the OKAY response.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xEza!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xEza!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 424w, https://substackcdn.com/image/fetch/$s_!xEza!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 848w, https://substackcdn.com/image/fetch/$s_!xEza!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 1272w, https://substackcdn.com/image/fetch/$s_!xEza!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xEza!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png" width="680" height="263.303730017762" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:436,&quot;width&quot;:1126,&quot;resizeWidth&quot;:680,&quot;bytes&quot;:248763,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xEza!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 424w, https://substackcdn.com/image/fetch/$s_!xEza!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 848w, https://substackcdn.com/image/fetch/$s_!xEza!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 1272w, https://substackcdn.com/image/fetch/$s_!xEza!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78b3ba89-cfa3-4b27-8024-9b175e215af5_1126x436.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>That&#8217;s the reason behind writing two <code>read</code> statements in the template after sending the last packet to the target. The last response is named 'shell-response'. In the matchers section, we specify such a name to match the expected chunk of bytes in this part. </p><p>As we can see, it is possible to use the structure of inputs to read from the socket without actually sending data. This approach was particularly useful in this scenario, where the target replies with more than one packet, and we need to match bytes in the last response.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!aZjP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aZjP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 424w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 848w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 1272w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!aZjP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png" width="698" height="312.08653846153845" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:651,&quot;width&quot;:1456,&quot;resizeWidth&quot;:698,&quot;bytes&quot;:610884,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aZjP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 424w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 848w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 1272w, https://substackcdn.com/image/fetch/$s_!aZjP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b6fa2f-df08-4438-af1a-a1396455a5fc_1476x660.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In conclusion, for this case, I believe the <code>read</code> property can be quite useful in complex situations where it's necessary to read specific bytes from certain responses in a series of network packets. If such complexity isn't required, I highly recommend using <code>read-size</code> instead, as it tends to be less prone to failure. Sometimes, the <code>read</code> property can lead to timeouts, especially if you're not reading the exact amount of bytes (since Nuclei keeps waiting for more bytes, resulting in a timeout eventually).</p><p>A few weeks ago, I raised an <a href="https://github.com/projectdiscovery/nuclei/issues/4454">issue</a> related to this in the official Nuclei repository, which was addressed in the release <a href="https://github.com/projectdiscovery/nuclei/releases/tag/v3.1.2">3.1.2</a>. However, in certain cases, depending on the network protocol you're working with, this issue might still occur.</p><h4>USING THE <code>READ</code> PROPERTY: CASE 2</h4><p>Let&#8217;s jump into the second use case for the <code>read</code> property: Using the response from one input to create the subsequent request.</p><p>This is another complex scenario where - for example - you might be dealing with a network protocol that requires exchanging a few packets, including a challenge, to establish a connection. In such cases, it&#8217;s often necessary to take a portion of the target's response, which contains the challenge, and send it back in your subsequent request.</p><p>I've crafted a simple example to demonstrate this particular case: </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!TnQs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!TnQs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 424w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 848w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 1272w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!TnQs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png" width="676" height="548.3481116584564" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:988,&quot;width&quot;:1218,&quot;resizeWidth&quot;:676,&quot;bytes&quot;:126046,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!TnQs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 424w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 848w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 1272w, https://substackcdn.com/image/fetch/$s_!TnQs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7fea44f6-c6df-458d-aa19-49a93b443b89_1218x988.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As observed, we read 256 bytes from the response of the first packet and name it &#8220;challenge&#8221;. Then, we use these received bytes into our second request. The matchers section isn&#8217;t of much importance in this example; the key aspect is how we can utilize the response from one packet for a subsequent request. Here's how it looks like when we use netcat for testing:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5-iq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5-iq!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 424w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 848w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 1272w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5-iq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png" width="682" height="143.42489270386267" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:196,&quot;width&quot;:932,&quot;resizeWidth&quot;:682,&quot;bytes&quot;:54643,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5-iq!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 424w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 848w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 1272w, https://substackcdn.com/image/fetch/$s_!5-iq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff7afb2f2-3123-4554-85af-eaa9866e7a88_932x196.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>We successfully receive back the challenge part.</p><p>That&#8217;s all. I don&#8217;t want to extend this post any further. I hope you find these 'advanced' tips for developing Nuclei network templates useful :) </p><p></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://blog.unapibageek.io/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://blog.unapibageek.io/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Wi-Fi DeAuth Attack]]></title><description><![CDATA[Or... how to help a friend survive a noisy neighbor.]]></description><link>https://blog.unapibageek.io/p/wi-fi-deauth-attack</link><guid isPermaLink="false">https://blog.unapibageek.io/p/wi-fi-deauth-attack</guid><dc:creator><![CDATA[Sheila A. Berta]]></dc:creator><pubDate>Fri, 08 Dec 2023 20:42:35 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/8544bba2-7d85-4184-9ff5-a716058dbf14_634x340.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A few weeks ago, a friend of mine reached out to me asking &#8220;What could he do?&#8221; regarding an extremely noisy neighbor who spends every night, all night long, playing video games and shouting loudly and angry at the console. He shouts so loudly that doesn't let anybody sleep. LoL.</p><p>My first thought was to use a jammer device to inhibit the Wi-Fi signal during the night, and hopefully prevent the noisy neighbor from being able to play online. However, jammers are not easy to purchase due to legal reasons. While it&#8217;s possible to build them at home, I opted for an easier, old-school alternative: a simple <strong>Wi-Fi DeAuth Attack</strong>.</p><p>I&#8217;m writing this little guide for my friend and for educational purposes for you. Feel free to experiment with your own network ;)</p><h4>REQUIREMENTS</h4><p>I will use an Apple MacBook with an M1 chip because that&#8217;s my friend's notebook. However, we cannot inject network packets directly from MacOS, so I will quickly spin up a Kali VM using UTM. I recommend UTM instead of VMWare or VirtualBox for Apple's M* chips.</p><ul><li><p>UTM for MacOS: <a href="https://mac.getutm.app">https://mac.getutm.app</a></p></li><li><p>Kali .iso file for Arm64 (chip M): <a href="https://cdimage.kali.org/kali-2023.3/kali-linux-2023.3-installer-arm64.iso">https://cdimage.kali.org/kali-2023.3/kali-linux-2023.3-installer-arm64.iso</a>&nbsp;<br>(you can always check for the latest release at the official page)</p></li><li><p>Tutorial to run Kali on UTM: <a href="https://www.kali.org/docs/virtualization/install-utm-guest-vm/">https://www.kali.org/docs/virtualization/install-utm-guest-vm/</a>.</p></li></ul><p>If you don&#8217;t have a MacBook, even better; run your favorite Linux distribution on your notebook and install the <a href="https://www.aircrack-ng.org/install.html">aircrack-ng</a> suite :)</p><p>Another requirement is to have a Wi-Fi interface with a chipset that supports packet injection. I recommend an Alfa or the classic TP-LINK WN722N.</p><h4>DRIVERS INSTALLATION</h4><p>Once you have the Kali VM (or the aircrack-ng installation) ready, you will likely need to install the drivers for the <a href="https://github.com/aircrack-ng/rtl8812au">RTL8812AU</a> chipset (Alfa) or <a href="https://github.com/aircrack-ng/rtl8188eus">RTL8188EUS</a> chipset (TP-LINK).</p><p>How do you know if you need the drivers? Connect your Wi-Fi interface to your VM or notebook via USB, and run the <code>iwconfig</code> command. If you don&#8217;t see a <code>wlan0</code> or any wireless interface in the output, then unfortunately, you need to install the drivers.</p><p>Note: If you are using UTM, please make sure to allow the USB interface at the top right corner of the view.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!V_ky!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!V_ky!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 424w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 848w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 1272w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!V_ky!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png" width="424" height="130" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:130,&quot;width&quot;:424,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:45296,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!V_ky!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 424w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 848w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 1272w, https://substackcdn.com/image/fetch/$s_!V_ky!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbd51e21-c281-4bc7-8bb1-983de06d5792_424x130.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Kali will likely still not detect your Wi-Fi interface.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xG71!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xG71!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 424w, https://substackcdn.com/image/fetch/$s_!xG71!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 848w, https://substackcdn.com/image/fetch/$s_!xG71!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 1272w, https://substackcdn.com/image/fetch/$s_!xG71!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xG71!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png" width="500" height="170.92651757188497" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:214,&quot;width&quot;:626,&quot;resizeWidth&quot;:500,&quot;bytes&quot;:20874,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xG71!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 424w, https://substackcdn.com/image/fetch/$s_!xG71!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 848w, https://substackcdn.com/image/fetch/$s_!xG71!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 1272w, https://substackcdn.com/image/fetch/$s_!xG71!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28d38e45-380a-4ab9-9f21-e49fa135ce14_626x214.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>So, let&#8217;s install the drivers. The installation procedure is nearly identical for both cases.</p><p>Steps for the RTL8188EUS (TP-LINK).</p><p><code>$ git clone https://github.com/aircrack-ng/rtl8188eus<br>$ cd rtl8188eus<br>$ make &amp;&amp; sudo make install<br>$ reboot</code></p><p>Steps for the RTL8812AU (Alfa):</p><p><code>$ sudo apt-get install dkms<br>$ git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git<br>$ cd rtl*<br>$ sudo make dkms_install<br>$ reboot</code></p><p>After the reboot, if we run the <code>iwconfig</code> command again, we should now be able to see the wireless interface, yay!</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WORV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WORV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 424w, https://substackcdn.com/image/fetch/$s_!WORV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 848w, https://substackcdn.com/image/fetch/$s_!WORV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 1272w, https://substackcdn.com/image/fetch/$s_!WORV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WORV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png" width="1204" height="492" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:492,&quot;width&quot;:1204,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:100314,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WORV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 424w, https://substackcdn.com/image/fetch/$s_!WORV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 848w, https://substackcdn.com/image/fetch/$s_!WORV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 1272w, https://substackcdn.com/image/fetch/$s_!WORV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb83d2f49-a35f-40e8-8b4f-fcc424a7137e_1204x492.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h4>WI-FI DEAUTH ATTACK</h4><p>So, we are now ready for action! The idea is to execute a Wi-Fi deauth attack against the target network. This will disconnect all devices connected to it, including the computer or video game console.</p><p>First of all, let's put our Wi-Fi interface into monitor mode.</p><p><code>$ sudo airmon-ng check kill<br>$ sudo airmon-ng start wlan0</code></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!se3G!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!se3G!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 424w, https://substackcdn.com/image/fetch/$s_!se3G!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 848w, https://substackcdn.com/image/fetch/$s_!se3G!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 1272w, https://substackcdn.com/image/fetch/$s_!se3G!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!se3G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png" width="1384" height="610" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:610,&quot;width&quot;:1384,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:99363,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!se3G!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 424w, https://substackcdn.com/image/fetch/$s_!se3G!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 848w, https://substackcdn.com/image/fetch/$s_!se3G!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 1272w, https://substackcdn.com/image/fetch/$s_!se3G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4277d381-fd70-4c61-8a29-64d89b6d665c_1384x610.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now, let's gather the necessary information from our target network.</p><p><code>$ sudo airodump-ng wlan0</code></p><p>The output will look as follows:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xpCD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xpCD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 424w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 848w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 1272w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xpCD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png" width="1456" height="672" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:672,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:211972,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xpCD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 424w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 848w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 1272w, https://substackcdn.com/image/fetch/$s_!xpCD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4a7a22e-f41e-41e4-a08c-de9cfdcba21e_1574x726.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Basically, we can observe:</p><ul><li><p><strong>BSSID:</strong> Mac Address of the Access Point</p></li><li><p><strong>PWR: </strong>In simple terms, it&#8217;s the distance from the Access Point</p></li><li><p><strong>CH: </strong>Wi-Fi channel</p></li><li><p><strong>ESSID:</strong> Access Point name</p></li></ul><p>For a successful packet injection attack, the distance from the targeted access point is critical: the closer, the better. How can you determine if you are close or far away? Observe the PWR information; the closer the number is to zero, the closer you are to the access point. In the picture above, I will target the access point with a PWR of -41, as it&#8217;s my router and the closest to me.</p><p>Let's go! Execute the deauth packet injection attack as follows:</p><p><code>$ sudo aireplay-ng --deauth 0 -a {{TARGET_BSSID}} wlan0</code></p><p>If it's working, you will see in the output that aireplay is successfully injecting packets. Note that the above command will deauthenticate all the devices connected to the target network</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9238!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9238!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 424w, https://substackcdn.com/image/fetch/$s_!9238!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 848w, https://substackcdn.com/image/fetch/$s_!9238!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9238!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9238!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png" width="1252" height="516" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:516,&quot;width&quot;:1252,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:135094,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9238!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 424w, https://substackcdn.com/image/fetch/$s_!9238!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 848w, https://substackcdn.com/image/fetch/$s_!9238!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 1272w, https://substackcdn.com/image/fetch/$s_!9238!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F276a7183-d30c-45b1-a079-dfdd24490e06_1252x516.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>While we let that run, devices should not be able to reconnect to the Wi-Fi. If that&#8217;s not the case, you can always automate the re-launch of the command every few minutes ;)</p><p>Note: In case you encounter the following error:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AqVv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AqVv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 424w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 848w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 1272w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!AqVv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png" width="1286" height="154" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:154,&quot;width&quot;:1286,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:30352,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AqVv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 424w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 848w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 1272w, https://substackcdn.com/image/fetch/$s_!AqVv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F513662c0-8850-4146-8c6e-d32d586fe773_1286x154.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>It seems <code>aireplay-ng</code> is attempting to inject on the wrong channel. I resolved this by stopping and then restarting the interface in monitor mode, but this time specifying the channel of the target network (you can obtain the channel from the <code>airodump-ng</code> information). Note the '11' at the end of the start command.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FJ-9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FJ-9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 424w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 848w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 1272w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FJ-9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png" width="1388" height="568" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:568,&quot;width&quot;:1388,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:101908,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FJ-9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 424w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 848w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 1272w, https://substackcdn.com/image/fetch/$s_!FJ-9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3eadb29-1747-41a4-89b9-1e2bd1af75ca_1388x568.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>That's all! I want to thank my friend for taking me back to the past for a while. It's been so long since I last engaged in these basic Wi-Fi 101 hacking stuff, and I had a lot of fun ;)</p><p>Thank you for reading.<br>Sheila A. Berta (<a href="https://www.x.com/UnaPibaGeek">@UnaPibaGeek</a>) </p><p></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://blog.unapibageek.io/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://blog.unapibageek.io/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Detecting Honeypots via 'Flawed Logic' issues]]></title><description><![CDATA[Novel ways to detect the most popular open-source honeypots (and automate the detection process with Nuclei).]]></description><link>https://blog.unapibageek.io/p/detecting-honeypots-via-flawed-logic</link><guid isPermaLink="false">https://blog.unapibageek.io/p/detecting-honeypots-via-flawed-logic</guid><dc:creator><![CDATA[Sheila A. Berta]]></dc:creator><pubDate>Tue, 21 Nov 2023 03:57:48 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/290a8e80-aea5-46c6-a9bd-631e31e25d1f_862x542.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Recently at Ekoparty and SwissCyberStorm I presented novel ways to detect the most popular open-source honeypots such as ADBHoney, Conpot, Cowrie, Dionaea (multiple services), ElasticPot, Mailoney, Redis Honeypot, Snare, among others. Here the summary and presented materials in case you missed it. </p><p></p><h4>WHAT IS A HONEYPOT?</h4><p>A honeypot mimics a real system - that can be vulnerable on purpose - to attract attackers and study their TTPs (Tactics, Techniques and Procedures). This is typically done to gather intelligence, attacks statistics, discover new threats and improve the detection systems. </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HsuM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HsuM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 424w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 848w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 1272w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HsuM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png" width="1456" height="335" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:335,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:192559,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HsuM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 424w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 848w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 1272w, https://substackcdn.com/image/fetch/$s_!HsuM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15502178-461a-4790-b3d2-8689b9b9391b_1894x436.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p></p><h4>COMMON DETECTION TECHNIQUES</h4><p>Over the years, security researchers have published different techniques to identify honeypots. Most previous work is based on analyzing the following stuff:</p><ul><li><p><strong>Default services banner </strong><br><em>(E.g.: 220 mailrelay.local ESMTP Exim 4.81 #1 Thu, 29 Jul 2010 05:13:48 -0700)</em></p></li><li><p><strong>Default response to commands </strong><br><em>(E.g.: cat /etc/passwd shows user &#8220;Phil California&#8221;) </em></p></li><li><p><strong>Certificates configuration</strong><br><em>(E.g.: Organization issuer/subject: &#8220;dionaea.carnivore.it&#8221;)</em> </p></li><li><p><strong>Suspicious number of open ports in the host </strong><br><em>(E.g.: All ports are open) </em></p></li><li><p><strong>Suspicious hosting provider </strong><br><em>(E.g.: ICS honeypots on Cloud hosting) </em></p></li></ul><p></p><h4>MY RESEARCH</h4><p>I aimed to detect honeypots by abusing a flawed logic in their network packet-handling functions. How? We send a malformed or unexpected network packet to the honeypot and, in case of a flawed logic, it will reply with an error or an unexpected response. We will use such a reply to identify the honeypot.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!E-lh!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!E-lh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 424w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 848w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 1272w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!E-lh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png" width="1134" height="352" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c0101530-9849-4910-9d41-219b2eec0579_1134x352.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:352,&quot;width&quot;:1134,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:92692,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!E-lh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 424w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 848w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 1272w, https://substackcdn.com/image/fetch/$s_!E-lh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc0101530-9849-4910-9d41-219b2eec0579_1134x352.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Why this way? Because this detection mechanism can bypass the countermeasures implemented to avoid the identification methods revealed by previous work. In other words, regardless of whether the banners, certificates, or command's static outputs are customized, we can still detect the honeypot due to the flawed logic issue. This represents a sort of bug that would require patching the honeypot's code in order to fix it, a process typically more complex.</p><p>In this research, I also limited my focus to finding a flawed logic issue in the first or second interaction with the honeypot. This was to minimize interaction with the honeypot and enable large-scale analysis for honeypot detection in a fast and efficient way :)</p><p></p><h4>HONEYPOT&#8217;S FLAWED LOGIC</h4><p>I analyzed about 15 of the most popular open-source honeypots and found a flawed logic in all of them. I will describe two examples here to give you an idea of how this detection technique works, and then you can find all the rest in the materials section at the end of this post.</p><p><strong>SNARE</strong></p><p>Snare is an HTTP (Web server) honeypot. <br>If we send the following HTTP request with a wrong HTTP version:</p><p><code>GET / HTTP/1337</code></p><p>The honeypot replies with the following error generated by the Python script:</p><p><code>Bad status line &#8216;Expected dot&#8217;</code></p><p>Example:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!aDpK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aDpK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 424w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 848w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 1272w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!aDpK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png" width="1168" height="270" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:270,&quot;width&quot;:1168,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:103419,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aDpK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 424w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 848w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 1272w, https://substackcdn.com/image/fetch/$s_!aDpK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc8389530-36c5-4618-a79c-f472b17fe6b0_1168x270.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>A suspicious banner can also be observed. However, since banners are customizable, I recommend basing the detection on the flawed logic.</p><p><strong>DIONAEA MQTT</strong></p><p>A Mosquitto honeypot, part of the popular Dionaea suite.<br>If we send a v5-format packet (publisher), the honeypot responds with a v3-format packet (susbcriber). </p><p>Let&#8217;s see how this looks like on the CLI:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4hFw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4hFw!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 424w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 848w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 1272w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4hFw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png" width="1230" height="144" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:144,&quot;width&quot;:1230,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:25216,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4hFw!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 424w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 848w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 1272w, https://substackcdn.com/image/fetch/$s_!4hFw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27cfe1db-21ee-42e8-8707-861912705eea_1230x144.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>If we send a '-V mqttv5' packet to the honeypot, it responds with an unexpected packet for the publisher (mqttv3-format), and the client reports an error.</p><p>Below we can observe the network packets exchange:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kjHW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kjHW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 424w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 848w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 1272w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kjHW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png" width="1064" height="225" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:225,&quot;width&quot;:1064,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:95949,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kjHW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 424w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 848w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 1272w, https://substackcdn.com/image/fetch/$s_!kjHW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6390c7a5-8d6c-4388-a177-43379dc1a097_1064x225.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>We can use the flawed replies from the honeypots to identify them.</p><p></p><h4>AUTOMATION</h4><p>As mentioned, above are just two examples. I discovered flawed logic issues in all the popular open-sources honeypots I analyzed. In order to facilitate and automate the detection, I created about 15 Nuclei templates, one for each honeypot.</p><p>Github repository of the templates: <a href="https://github.com/UnaPibaGeek/honeypots-detection">UnaPibaGeek/honeypots-detection</a>.</p><p>Usage:</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;c2366f02-1614-4df4-92b8-b35d1a644436&quot;,&quot;duration&quot;:null}"></div><p>Nuclei has already merged these templates to their official templates repository. So you can update your Nuclei installation and use them from there.</p><p>Presentation slides (counter-intelligence slides were removed here):  <a href="https://www.slideshare.net/sheyx7/honeypots-detection-via-flawed-logic-issues">Honeypots Detection via Flawed Logic Issues</a>.</p><p>If any question, do not hesitate to reach me out.</p><p>Sheila A. Berta (<a href="https://www.x.com/UnaPibaGeek">@UnaPibaGeek</a>)</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.unapibageek.io/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Sheila A. Berta - UnaPibaGeek! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>