Hacking Articles Tips Tricks Videos Tutorials
Photo
Black Hat Ethical Hacking
Offensive Security Tool: Pretender
Offensive Security Tool: PretenderPost Views: 18 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/05/Patreon.png Subscribe to Patreon to watch this episode.
Reading Time: 3 Minutes PretenderYour MitM sidekick for relaying attacks featuring DHCPv6 DNS takeover as well as mDNS, LLMNR and NetBIOS-NS spoofing.
Pretender is a tool developed by Red Team Pentesting to obtain machine-in-the-middle positions via spoofed local name resolution and DHCPv6 DNS takeover attacks. It primarily targets Windows hosts, as it is intended to be used for relaying attacks but can be deployed on Linux, Windows, and all other platforms Go supports. Name resolution queries can be answered with arbitrary IPs for situations where the relaying tool runs on a different host than pretender. It is designed to work with tools such as Impacket’s ntlmrelayx.py and krbrelayx that handle the incoming connections for relaying attacks or hash dumping.
See Also: So you want to be a hacker? Complete Offensive Security and Ethical Hacking Course USAGETo get a feel for the situation in the local network, pretender can be started in –dry mode where it only logs incoming queries and does not answer any of them:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/Usage-1-1024x339.png
To perform local name resolution spoofing via mDNS, LLMNR and NetBIOS-NS as well as a DHCPv6 DNS takeover with router advertisements, simply run pretender like this:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS1-2.png
You can disable certain attacks with –no-dhcp-dns (disabled DHCPv6, DNS and router advertisements), –no-lnr (disabled mDNS, LLMNR and NetBIOS-NS), –no-mdns, –no-llmnr, –no-netbios and –no-ra.
If ntlmrelayx.py runs on a different host (say 10.0.0.10/fe80::5), run pretender like this:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS2-2.png
Pretender can be setup to only respond to queries for certain domains (or all but certain domains) and it can perform the spoofing attacks only for certain hosts (or all but certain hosts). Referencing hosts by hostname relies on the name resolution of the host that runs pretender. See the following example:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS3-2-1024x212.png
For more information, run pretender –help
See Also: Offensive Security Tool: DDoS-Layer7-bheh TIPS* Make sure to enable IPv6 support in ntlmrelayx.py with the -6 flag
* Pretender can be configured to stop after a certain time period for situations where it cannot be aborted manually (–stop-after and main.vendorStopAfter)
* Host info lookup (which relies on the ARP table, IP neighbours and reverse lookups) can be disabled with –no-host-info or main.vendorNoHostInfo
* If you are not sure which interface to choose (especially on Windows), list all interfaces with names and addresses using –interfaces
* If you want to exclude hosts from local name resolution spoofing, make sure to also exclude their IPv6 addresses or use –no-ipv6-lnr/main.vendorNoIPv6LNR
* DHCPv6 messages usually contain a FQDN option (which can also sometimes contain a hostname which is not a FQDN). This option is used to filter out messages by hostname (–spoof-for/–dont-spoof-for). You can decide what to do with DHCPv6 messages without FQDN option by setting or omitting –ignore-nofqdn
* Depending on the build configuration, either the operating system resolver (CGO_ENABLED=1) or a Go implementation (CGO_ENABLED=0) is used. This can be important for host info collection because the OS resolver may support local name resolution and the Go implementation does not, unless a stub resolver is used.
* The host info functionality is currently only available for Windows and Linux.
* A custom M[...]
Offensive Security Tool: Pretender
Offensive Security Tool: PretenderPost Views: 18 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/05/Patreon.png Subscribe to Patreon to watch this episode.
Reading Time: 3 Minutes PretenderYour MitM sidekick for relaying attacks featuring DHCPv6 DNS takeover as well as mDNS, LLMNR and NetBIOS-NS spoofing.
Pretender is a tool developed by Red Team Pentesting to obtain machine-in-the-middle positions via spoofed local name resolution and DHCPv6 DNS takeover attacks. It primarily targets Windows hosts, as it is intended to be used for relaying attacks but can be deployed on Linux, Windows, and all other platforms Go supports. Name resolution queries can be answered with arbitrary IPs for situations where the relaying tool runs on a different host than pretender. It is designed to work with tools such as Impacket’s ntlmrelayx.py and krbrelayx that handle the incoming connections for relaying attacks or hash dumping.
See Also: So you want to be a hacker? Complete Offensive Security and Ethical Hacking Course USAGETo get a feel for the situation in the local network, pretender can be started in –dry mode where it only logs incoming queries and does not answer any of them:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/Usage-1-1024x339.png
To perform local name resolution spoofing via mDNS, LLMNR and NetBIOS-NS as well as a DHCPv6 DNS takeover with router advertisements, simply run pretender like this:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS1-2.png
You can disable certain attacks with –no-dhcp-dns (disabled DHCPv6, DNS and router advertisements), –no-lnr (disabled mDNS, LLMNR and NetBIOS-NS), –no-mdns, –no-llmnr, –no-netbios and –no-ra.
If ntlmrelayx.py runs on a different host (say 10.0.0.10/fe80::5), run pretender like this:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS2-2.png
Pretender can be setup to only respond to queries for certain domains (or all but certain domains) and it can perform the spoofing attacks only for certain hosts (or all but certain hosts). Referencing hosts by hostname relies on the name resolution of the host that runs pretender. See the following example:
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/SS3-2-1024x212.png
For more information, run pretender –help
See Also: Offensive Security Tool: DDoS-Layer7-bheh TIPS* Make sure to enable IPv6 support in ntlmrelayx.py with the -6 flag
* Pretender can be configured to stop after a certain time period for situations where it cannot be aborted manually (–stop-after and main.vendorStopAfter)
* Host info lookup (which relies on the ARP table, IP neighbours and reverse lookups) can be disabled with –no-host-info or main.vendorNoHostInfo
* If you are not sure which interface to choose (especially on Windows), list all interfaces with names and addresses using –interfaces
* If you want to exclude hosts from local name resolution spoofing, make sure to also exclude their IPv6 addresses or use –no-ipv6-lnr/main.vendorNoIPv6LNR
* DHCPv6 messages usually contain a FQDN option (which can also sometimes contain a hostname which is not a FQDN). This option is used to filter out messages by hostname (–spoof-for/–dont-spoof-for). You can decide what to do with DHCPv6 messages without FQDN option by setting or omitting –ignore-nofqdn
* Depending on the build configuration, either the operating system resolver (CGO_ENABLED=1) or a Go implementation (CGO_ENABLED=0) is used. This can be important for host info collection because the OS resolver may support local name resolution and the Go implementation does not, unless a stub resolver is used.
* The host info functionality is currently only available for Windows and Linux.
* A custom M[...]
Hacking Articles Tips Tricks Videos Tutorials
Black Hat Ethical Hacking Offensive Security Tool: Pretender Offensive Security Tool: PretenderPost Views: 18 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/05/Patreon.png Subscribe to Patreon to watch this episode. Reading…
AC address vendor list can be compiled into the binary by replacing the default list hostinfo/mac-vendors.txt. Only lines with MAC prefixes in the following format are recognized: FF:FF:FF<tabVendorID<tabVendor (the MAC prefix length can be arbitrary).
* If you only want to perform Kerberos relaying you can specify –no-lnr and –spoof-types SOA to ignore any queries that are unrelated to the attack.
* When conducting a Kerberos relay attack where krbrelayx.py runs on a different host than pretender (relay IPv4 address points to different host that runs krbrelayx.py), the host running krbrelayx.py will also need to run pretender in order to receive and deny the Dynamic Update query sent to the relay IPv4 address. Building and VendoringPretender can be build as follows:
vendorInterface
vendorRelayIPv4
vendorRelayIPv6
vendorSOAHostname
vendorNoDHCPv6DNSTakeover
vendorNoDHCPv6
vendorNoDNS
vendorNoMDNS
vendorNoNetBIOS
vendorNoLLMNR
vendorNoLocalNameResolution
vendorNoRA
vendorNoIPv6LNR
vendorSpoof
vendorDontSpoof
vendorSpoofFor
vendorDontSpoofFor
vendorSpoofTypes
vendorIgnoreDHCPv6NoFQDN
vendorDryMode
vendorTTL
vendorLeaseLifetime
vendorRARouterLifetime
vendorRAPeriod
vendorStopAfter
vendorVerbose
vendorNoColor
vendorNoTimestamps
vendorLogFileName
vendorNoHostInfo
vendorHideIgnored
vendorRedirectStderr
vendorListInterfaces
Clone the repo from here: GitHub Link
Trending: Write up: How Misconfigurations in Linux can leave you vulnerable to Attackers https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent Tools* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/DDoS-Layer7-bheh-300x150.png Offensive Security Tool: DDoS-Layer7-bhehJuly 28, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/GitHacker-300x150.png Offensive Security Tool: GitHackerJuly 22, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/Sarenka-300x150.png OSINT Tool: SARENKAJuly 21, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/waymore-300x150.png Recon Tool: WayMoreJuly 15, 2022
Reading Time: 9 minutes https://www.blackhatethicalhacking.com/wp-content/uploads/2022/06/OffSec-Course.png Offensive Security & Ethical Hacking CourseBegin the learning curve of hacking now!
The post Offensive Security Tool: Pretender first appeared on Black Hat Ethical Hacking.
* If you only want to perform Kerberos relaying you can specify –no-lnr and –spoof-types SOA to ignore any queries that are unrelated to the attack.
* When conducting a Kerberos relay attack where krbrelayx.py runs on a different host than pretender (relay IPv4 address points to different host that runs krbrelayx.py), the host running krbrelayx.py will also need to run pretender in order to receive and deny the Dynamic Update query sent to the relay IPv4 address. Building and VendoringPretender can be build as follows:
go buildPretender can also be compiled with pre-configured settings. For this, the ldflags have to be modified like this: -ldflags '-X main.vendorInterface=eth1'For example, Pretender can be built for Windows with a specific default interface, without colored output and with a relay IPv4 address configured: GOOS=windows go build -trimpath -ldflags '-X "main.vendorInterface=Ethernet 2" -X main.vendorNoColor=true -X main.vendorRelayIPv4=10.0.0.10'Full list of vendoring options (see defaults.go or pretender –help for detailed information):vendorInterface
vendorRelayIPv4
vendorRelayIPv6
vendorSOAHostname
vendorNoDHCPv6DNSTakeover
vendorNoDHCPv6
vendorNoDNS
vendorNoMDNS
vendorNoNetBIOS
vendorNoLLMNR
vendorNoLocalNameResolution
vendorNoRA
vendorNoIPv6LNR
vendorSpoof
vendorDontSpoof
vendorSpoofFor
vendorDontSpoofFor
vendorSpoofTypes
vendorIgnoreDHCPv6NoFQDN
vendorDryMode
vendorTTL
vendorLeaseLifetime
vendorRARouterLifetime
vendorRAPeriod
vendorStopAfter
vendorVerbose
vendorNoColor
vendorNoTimestamps
vendorLogFileName
vendorNoHostInfo
vendorHideIgnored
vendorRedirectStderr
vendorListInterfaces
Clone the repo from here: GitHub Link
Trending: Write up: How Misconfigurations in Linux can leave you vulnerable to Attackers https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent Tools* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/DDoS-Layer7-bheh-300x150.png Offensive Security Tool: DDoS-Layer7-bhehJuly 28, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/GitHacker-300x150.png Offensive Security Tool: GitHackerJuly 22, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/Sarenka-300x150.png OSINT Tool: SARENKAJuly 21, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/07/waymore-300x150.png Recon Tool: WayMoreJuly 15, 2022
Reading Time: 9 minutes https://www.blackhatethicalhacking.com/wp-content/uploads/2022/06/OffSec-Course.png Offensive Security & Ethical Hacking CourseBegin the learning curve of hacking now!
The post Offensive Security Tool: Pretender first appeared on Black Hat Ethical Hacking.
Business Logic Vulnerabilities == $$$
https://sagarsajeev.medium.com/business-logic-vulnerabilities-b4db2af08aaf?source=rss------bug_bounty-5
https://sagarsajeev.medium.com/business-logic-vulnerabilities-b4db2af08aaf?source=rss------bug_bounty-5
According to OWASP , Business Logic Vulnerabilities are ways of using the legitimate processing flow of an application in a way that…Continue reading on Medium » (https://sagarsajeev.medium.com/business-logic-vulnerabilities-b4db2af08aaf?source=rss------bug_bounty-5)
Threat Hunting Techniques, Tactics and Methodologies
https://www.reddit.com/r/redteamsec/comments/wb6vl0/threat_hunting_techniques_tactics_and/
submitted by /u/Successful_Mix_8988 (https://www.reddit.com/user/Successful_Mix_8988)
[link] (https://socprime.com/blog/threat-hunting-techniques-tactics-and-methodologies-your-step-by-step-introduction/) [comments] (https://www.reddit.com/r/redteamsec/comments/wb6vl0/threat_hunting_techniques_tactics_and/)
https://www.reddit.com/r/redteamsec/comments/wb6vl0/threat_hunting_techniques_tactics_and/
submitted by /u/Successful_Mix_8988 (https://www.reddit.com/user/Successful_Mix_8988)
[link] (https://socprime.com/blog/threat-hunting-techniques-tactics-and-methodologies-your-step-by-step-introduction/) [comments] (https://www.reddit.com/r/redteamsec/comments/wb6vl0/threat_hunting_techniques_tactics_and/)
Similar tools like Pcredz or netcrez for Internet Control Systems
https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/
<!-- SC_OFF -->I am working on a project,please recommend some tools similar to Pcredz which can extract credentials but for Internet Control Protocols like modbus.If not found any tools then please recommend some methods or a way to do that.Thanks <!-- SC_ON --> submitted by /u/Amazing_Wall (https://www.reddit.com/user/Amazing_Wall)
[link] (https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/) [comments] (https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/)
https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/
<!-- SC_OFF -->I am working on a project,please recommend some tools similar to Pcredz which can extract credentials but for Internet Control Protocols like modbus.If not found any tools then please recommend some methods or a way to do that.Thanks <!-- SC_ON --> submitted by /u/Amazing_Wall (https://www.reddit.com/user/Amazing_Wall)
[link] (https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/) [comments] (https://www.reddit.com/r/Pentesting/comments/wb7tyv/similar_tools_like_pcredz_or_netcrez_for_internet/)
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Extensions used by Hackers
https://cdn-images-1.medium.com/max/600/1*Nm6ahPyRskA9QbgFn0mlTA.jpeg
As we all know there are so many Extensions present in Browsers nowadays which can easily be installed in browsers and make our work…
Continue reading on Medium »
Extensions used by Hackers
https://cdn-images-1.medium.com/max/600/1*Nm6ahPyRskA9QbgFn0mlTA.jpeg
As we all know there are so many Extensions present in Browsers nowadays which can easily be installed in browsers and make our work…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
The Feasibility of Side-Channel Timing Attacks against the SoloKeys Authenticator
https://cdn-images-1.medium.com/max/1189/1*yo4ERTho-sp3JBoN2KwrIA.png
Timing attacks are impossible, right? Here I will introduce a general method to get accurate time measurements on USB devices (not only…
Continue reading on Medium »
The Feasibility of Side-Channel Timing Attacks against the SoloKeys Authenticator
https://cdn-images-1.medium.com/max/1189/1*yo4ERTho-sp3JBoN2KwrIA.png
Timing attacks are impossible, right? Here I will introduce a general method to get accurate time measurements on USB devices (not only…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
2022 Hacky Holidays: UnlockTheCity CTF— History Repeats, Stop The Heist, Cloud Escalator Part 1
https://cdn-images-1.medium.com/max/621/1*nYDrDJzv9y0oeffckryNow.png
Recently, I participated in the Hackazon Hacky Holidays: UnlockTheCity CTF (say that three times fast). UnlockTheCity was a somewhat…
Continue reading on Maveris Labs »
2022 Hacky Holidays: UnlockTheCity CTF— History Repeats, Stop The Heist, Cloud Escalator Part 1
https://cdn-images-1.medium.com/max/621/1*nYDrDJzv9y0oeffckryNow.png
Recently, I participated in the Hackazon Hacky Holidays: UnlockTheCity CTF (say that three times fast). UnlockTheCity was a somewhat…
Continue reading on Maveris Labs »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Business Logic Vulnerabilities == $$$
https://cdn-images-1.medium.com/max/600/1*0EUVKh2-6xxWXQl_NYJHAw.jpeg
According to OWASP , Business Logic Vulnerabilities are ways of using the legitimate processing flow of an application in a way that…
Continue reading on Medium »
Business Logic Vulnerabilities == $$$
https://cdn-images-1.medium.com/max/600/1*0EUVKh2-6xxWXQl_NYJHAw.jpeg
According to OWASP , Business Logic Vulnerabilities are ways of using the legitimate processing flow of an application in a way that…
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Cuatro herramientas online gratis para compartir o recopilar fragmentos de código fuente
PUBLICADO EN 29 JULIO, 2022POR EHACKING
Continue reading on Medium »
Cuatro herramientas online gratis para compartir o recopilar fragmentos de código fuente
PUBLICADO EN 29 JULIO, 2022POR EHACKING
Continue reading on Medium »