Mensajes recientes

Noticias y Eventos / Schrödinger Security - Episodio II
« Último mensaje por hkm on Mayo 12, 2021, 07:43:47 am »

¿Para qué sirve un facebook leak?

Hablan de varios temas, no solo de "¿Para qué sirve un facebook leak?".
Noticias y Eventos / Defcon604 BSidesVancouver CTF (Mayo 10 - 15)
« Último mensaje por hkm on Mayo 10, 2021, 11:27:15 am »

CTF reg:
CTF rules:
CTF zt info:

If anybody is having issues installing ZeroTier on a Kali box:

zerotier communication test
 - after zt join request, & admin has approved your tunnel:
zerotier-cli listnetworks
 should result in "...dc604-bsidesvancouver-ctf <macaddr> OK PRIVATE 10.60.1X.X "

Try connection to test host:
- ping
- curl
Seguridad y Hacking / Active Directory Enumeration: RPCClient
« Último mensaje por hkm on Mayo 09, 2021, 05:53:46 pm »
                Red Teaming           
            Active Directory Enumeration: RPCClient     
                        May 9, 2021May 9, 2021 by Raj Chandel                   

In this article, we are going to focus on the enumeration of the Domain through the SMB and RPC channels. The tool that we will be using for all the enumerations and manipulations will be rpcclient. The article is focused on Red Teamers but Blue Teamers and Purple Teamers can also use these commands to test the security configurations they deployed.

 Table of Content
  • Introduction
  • Logging and Server Information
  • Domain Information Query
  • Enumerating Domain Users
  • Enumerating Domain Groups
  • Group Queries
  • User Queries
  • Enumerating Privileges
  • Get Domain Password Information
  • Get User Domain Password Information
  • Enumerating SID from LSA
  • Creating Domain User
  • Lookup Names
  • Enumerating Alias Groups
  • Delete Domain User
  • Net Share Enumeration
  • Net Share Get Information
  • Enumerating Domains
  • Enumerating Domain Groups
  • Display Query Information
  • Change Password of User
  • Create Domain Group
  • Delete Domain Group
  • Domain Lookup
  • SAM Lookup
  • SID Lookup
  • LSA Query
  • LSA Create Account
  • Enumerating LSA Privileges
  • Enumerating LSA Group Privileges
  • Enumerating LSA Account Privileges
  • LSA Query Security Objects
  • Conclusion

RPC or Remote Procedure Call is a service that helps establish and maintain communication between different Windows Applications. The RPC service works on the RPC protocols that form a low-level inter-process communication between different Applications. In this communication, the child process can make requests from a parent process. The child-parent relationship here can also be depicted as client and server relation. RPC is built on Microsoft’s COM and DCOM technologies. In general, the rpcclient can be used to connect to the SMB protocol as well. rpcclient is a part of the Samba suite on Linux distributions. The rpcclient was designed to perform debugging and troubleshooting tasks on a Windows Samba configuration. During that time, the designers of the rpcclient might be clueless about the importance of this tool as a penetration testing tool. There are multiple methods to connect to a remote RPC service. However, for this particular demonstration, we are using rpcclient

Logging and Server Information

To begin the enumeration, a connection needs to be established. This can be done by providing the Username and Password followed by the target IP address of the server. After establishing the connection, to get the grasp of various commands that can be used you can run the help. One of the first enumeration commands to be demonstrated here is the srvinfo command. It can be used on the rpcclient shell that was generated to enumerate information about the server. It can be observed that the os version seems to be 10.0. That narrows the version that the attacker might be looking at to Windows 10, Windows Server 2016, and Windows Server 2019.&nbsp; Learn more about the OS Versions.

 Domain Information Query

The next command that can be used via rpcclient is querydominfo. This command retrieves the domain, server, users on the system, and other relevant information. From the demonstration, it can be observed that the domain that is being enumerated is IGNITE. It has a total of 67 users. There was a Forced Logging off on the Server and other important information.

 Enumerating Domain Users

Another command to use is the enumdomusers. The name is derived from the enumeration of domain users. Upon running this on the rpcclient shell, it will extract the usernames with their RID. RID is a suffix of the long SID in a hexadecimal format. In this specific demonstration, there are a bunch of users that include Administrator, yashika, aarti, raj, Pavan, etc. &nbsp;

 Enumerating Domain Groups

Since we performed enumeration on different users, it is only fair to extend this to various groups as well. The group information helps the attacker to plan their way to the Administrator or elevated access. The polices that are applied on a Domain are also dictated by the various group that exists. Many groups are created for a specific service. So, it is also a good way to enumerate what kind of services might be running on the server, this can be done using enumdomgroup. The name is derived from the enumeration of domain groups. Upon running this on the rpcclient shell, it will extract the groups with their RID.

 Group Queries

After enumerating groups, it is possible to extract details about a particular group from the list. This information includes the Group Name, Description, Attributes, and the number of members in that group. It is possible to target the group using the RID that was extracted while running the enumdomgroup. For the demonstration here, RID 0x200 was used to find that it belongs to the Domain Admin groups. This group constitutes 7 attributes and 2 users are a member of this group.

 User Queries

The ability to enumerate individually doesn’t limit to the groups but also extends to the users. To enumerate a particular user from rpcclient, the queryuser command must be used. When provided the username, it extracts information such as the username, Full name, Home Drive, Profile Path, Description, Logon Time, Logoff Time, Password set time, Password Change Frequency, RID, Groups, etc. In the demonstration, it can be observed that the user has stored their credentials in the Description. Hence, the credentials were successfully enumerated and the account can be taken over now.&nbsp;

 Enumerating Privileges

After the user details and the group details, another information that can help an attacker that has retained the initial foothold on the domain is the Privileges. These privileges can help the attacker plan for elevating privileges on the domain. The privileges can be enumerated using the enumprivs command on rpcclient. In the demonstration, it can be observed that the current user has been allocated 35 privileges.

 Get Domain Password Information

To enumerate the Password Properties on the domain, the getdompwinfo command can be used. This is made from the words get domain password information. This will help in getting the information such as the kind of password policies that have been enforced by the Administrator in the domain. It is possible to enumerate the minimum password length and the enforcement of complex password rules. If these kinds of features are not enabled on the domain, then it is possible to brute force the credentials on the domain.

 Get User Domain Password Information

In the previous command, we used the getdompwinfo to get the password properties of the domain administrated by the policies. But it is also possible to get the password properties of individual users using the getusrdompwinfo command with the user’s RID. In the demonstration, the user with RID 0x1f4 was enumerated regarding their password properties.

 Enumerating SID from LSA

Learning about various kinds of compromises that can be performed using Mimikatz we know that the SID of a user is the security Identifier that can be used for a lot of elevating privileges and minting tickets attacks. It can be enumerated through rpcclient using the lsaenumsid command. In the demonstration, it can be observed that lsaenumsid has enumerated 20 SIDs within the Local Security Authority or LSA.

 Creating Domain User

While having some privileges it is also possible to create a user within the domain using the rpcclient. It can be done with the help of the createdomuser command with the username that you want to create as a parameter. In the demonstration, a user hacker is created with the help of a createdomuser and then a password is provided to it using the setuserinfo2 command. At last, it can be verified using the enumdomusers command.

 Lookup Names

We can also check if the user we created has been assigned a SID or not using the lookupnames command on the rpcclient. As with the lsaenumsid, it was possible to extract the SID but it was not possible to tell which user has that SID. This problem is solved using lookupnames whereupon providing username the SID of that particular user can be extracted with ease.

 Enumerating Alias Groups

The next command that can be used is enumalsgroups. It enumerates alias groups on the domain. The alias is an alternate name that can be used to reference an object or element. When used with the builtin parameter, it shows all the built-in groups by their alias names as demonstrated below.

 Delete Domain User

The ability to manipulate a user doesn’t end with creating a user or changing the password of a user. If proper privileges are assigned it also possible to delete a user using the rpcclient. The deletedomuser command is used to perform this action.

 Net Share Enumeration

When dealing with SMB an attacker is bound to be dealt with the Network Shares on the Domain. Most of the Corporate offices don’t want their employees to use USB sticks or other mediums to share files and data among themselves. Hence, they usually set up a Network Share. There are times where these share folders may contain sensitive or Confidential information that can be used to compromise the target. To enumerate these shares the attacker can use netshareenum on the rpcclient. If you want to enumerate all the shares then use netshareenumall.

 Net Share Get Information

As with the previous commands, the share enumeration command also comes with the feature to target a specific entity. The command netsharegetinfo followed by the name of the share you are trying to enumerate will extract details about that particular share. This detail includes the path of the share, remarks, it will indicate if the share has a password for access, it will tell the number of users accessing the share and what kind of access is allowed on the share.

 Enumerating Domains

In the scenarios where there is a possibility of multiple domains in the network, there the attacker can use enumdomains to enumerate all the domains that might be deployed in that network. In the demonstration presented, there are two domains: IGNITE and Builtin.

 Enumerating Domain Groups

Next, we have two query-oriented commands. These commands can enumerate the users and groups in a domain. Since we already performed the enumeration of such data before in the article, we will enumerate using enumdomgroup and enumdomusers and the query-oriented commands in this demonstration. When using the enumdomgroup we see that we have different groups with their respective RID and when this RID is used with the queryusergroups it reveals information about that particular holder or RID. In the case of queryusergroups, the group will be enumerated. When using querygroupmem, it will reveal information about that group member specific to that particular RID.

 Display Query Information

From the enumdomusers command, it was possible to obtain the users of the domain as well as the RID. This information can be elaborated on using the querydispinfo. This will extend the amount of information about the users and their descriptions.

 Change Password of User

As from the previous commands, we saw that it is possible to create a user through rpcclient. Depending on the user privilege it is possible to change the password using the chgpasswd command.

 Create Domain Group

After creating the users and changing their passwords, it’s time to manipulate the groups. Using rpcclient it is possible to create a group. The createdomgroup command is to be used to create a group. It accepts the group name as a parameter. After creating the group, it is possible to see the newly created group using the enumdomgroup command.

 Delete Domain Group

The manipulation of the groups is not limited to the creation of a group. If the permissions allow, an attacker can delete a group as well. The command to be used to delete a group using deletedomgroup. This can be verified using the enumdomgroups command.

 Domain Lookup

We have enumerated the users and groups on the domain but not enumerated the domain itself. To extract information about the domain, the attacker can provide the domain name as a parameter to the command lookupdomain as demonstrated.

 SAM Lookup

Since the user and password-related information is stored inside the SAM file of the Server. It is possible to enumerate the SAM data through the rpcclient as well. When provided with the username to the samlookupnames command, it can extract the RID of that particular user. &nbsp;If used the RID is the parameter, the samlookuprids command can extract the username relevant to that particular RID.

 SID Lookup

The next command to demonstrate is lookupsids. This command can be used to extract the details regarding the user that the SID belongs. In our previous attempt to enumerate SID, we used the lsaenumsid command. That command reveals the SIDs for different users on the domain. To extract further information about that user or in case during the other enumeration the attacker comes into the touch of the SID of a user, then they cause to use the lookupsids command to get more information about that particular user. In the demonstration, it can be observed that the SID that was enumerated belonged to the Administrator of the Builtin users.

 LSA Query

The next command that can help with the enumeration is lsaquery. This command can help with the enumeration of the LSA Policy for that particular domain. In the demonstration, it can be observed that a query was generated for LSA which returned with information such as Domain Name and SID. Similarly to enumerate the Primary Domain Information such as the Role of the machine, Native more of the Domain can be done using the dsroledominfo command as demonstrated.

 LSA Create Account

An attacker can create an account object based on the SID of that user. For this particular demonstration, we will first need a SID. This can be extracted using the lookupnames command used earlier. Passing the SID as a parameter in the lsacreateaccount command will enable us as an attacker to create an account object as shown in the image below.

 Enumerating LSA Group Privileges

During our previous demonstrations, we were able to enumerate the permissions and privileges of users and groups based on the RID of that particular user. It is possible to perform enumeration regarding the privileges for a group or a user based on their SID as well. To do this first, the attacker needs a SID. This can be obtained by running the lsaenumsid command. In the demonstration below, the attacker chooses S-1-1-0 SID to enumerate. When it was passed as a parameter in the command lookupsids, the attacker was able to know that this belongs to the group Everyone. Further, when the attacker used the same SID as a parameter for lsaenumprivaccount, they were able to enumerate the levels of privileges such as high, low, and attribute. Then the attacker used the SID to enumerate the privileges using the lsaenumacctrights command. This command was able to enumerate two specific privileges such as SeChangeNotiftyPrivielge and SeNetworkLogonRight privilege.

The ability to interact with privileges doesn’t end with the enumeration regarding the SID or privileges. It is also possible to manipulate the privileges of that SID to make them either vulnerable to a particular privilege or remove the privilege of a user altogether. To demonstrate this, the attacker first used the lsaaddpriv command to add the SeCreateTokenPrivielge to the SID and then used the lsadelpriv command to remove that privilege from that group as well. All this can be observed in the usage of the lsaenumprivaccount command.

 Enumerating LSA Account Privileges

In the previous demonstration, the attacker was able to provide and remove privileges to a group. It is also possible to add and remove privileges to a specific user as well. The lsaaddacctrights command can be used to add privileges to a user based on their SID. The SID was retrieved using the lookupnames command. After verifying that the privilege was added using the lsaenumprivaccount command, we removed the privileges from the user using the lsaremoveacctrights command.

After manipulating the Privileges on the different users and groups it is possible to enumerate the values of those specific privileges for a particular user using the lsalookupprivvalue command.

 LSA Query Security Objects

The next command to observe is the lsaquerysecobj command. This command is made from LSA Query Security Object. This command helps the attacker enumerate the security objects or permissions and privileges related to the security as demonstrated below.


In this article, we were able to enumerate a wide range of information through the SMB and RPC channel inside a domain using the rpcclient tool. This article can serve as a reference for Red Team activists for attacking and enumerating the domain but it can also be helpful for the Blue Team to understand and test the measures applied on the domain to protect the Network and its users.

Author: Pavandeep Singh is a Technical Writer, Researcher, and Penetration Tester. Can be Contacted onTwitter   LinkedIn

Por los attaques recientes de Solarigate y la vulnerabilidad de Exchange Server, Microsoft ofrece guías detalladas de respuesta a incidentes de estos tipos:


Password spray

App consent grant

Debe responder rápidamente a los ataques de seguridad detectados para contener y remediar su daño. A medida que se produzcan nuevos ciberataques generalizados, como Solarigate y la vulnerabilidad de Exchange Server, Microsoft responderá con una guía detallada de respuesta a incidentes.

También necesita una guía detallada para los métodos de ataque comunes que los usuarios malintencionados emplean todos los días. Para abordar esta necesidad, use los manuales de respuesta a incidentes para estos tipos de ataques:

Suplantación de identidad | Phishing

Spray de contraseña | Password spray

Concesión de consentimiento de la aplicación | App consent grant

Cada libro de jugadas (playbook) incluye:

Requisitos previos: los requisitos específicos que debe completar antes de comenzar la investigación. Por ejemplo, el registro que debe activarse y los roles y permisos que se requieren.
Flujo de trabajo: el flujo lógico que debe seguir para realizar la investigación.
Lista de verificación: una lista de tareas para los pasos del diagrama de flujo. Esta lista de verificación puede ser útil en entornos altamente regulados para verificar lo que ha hecho.
Pasos de la investigación: guía detallada paso a paso para la investigación específica.
Noticias y Eventos / picoCTF para estudiantes creado por Carnegie Mellon (May 7 - 10)
« Último mensaje por hkm on Mayo 06, 2021, 04:27:58 pm »
picoCTF is the largest cybersecurity hacking contest for middle and high school students, created by security experts at Carnegie Mellon University.

picoCTF is a free computer security game with original educational content built on a capture-the-flag framework created by security and privacy experts at Carnegie Mellon University.

Gain access to a safe and unique hands on experience where participants must reverse engineer, break, hack, decrypt, and think creatively and critically to solve the challenges and capture the flags.

Sign up now and explore picoCTF's newest features where you can build skills in the picoGym and read about cybersecurity terminology and principles with the picoPrimer.
Noticias y Eventos / SecTalks - Análisis de contraseñas y libro de Pablo Corona (Mayo 4)
« Último mensaje por hkm on Mayo 06, 2021, 04:06:13 pm »

SecTalks de Schrodinger Security:

Análisis de contraseñas

Libro de Pablo Corona @pcoronaf
Electrónica / Hunter Cat NFC
« Último mensaje por electronicats on Mayo 06, 2021, 01:42:10 pm »

    Understanding the Hunter Cat NFC and its LEDs
    The device has a preloaded reader detection firmware that lets the user know when he is near an NFC reader that is trying to read his card.

    Reader detection
     Detect hidden readers seeking to read your cards without authorization for cloning

    Turn on Hunter Cat NFC
    Wait for the LEDs to turn off
    Red LED flashes every 1 second
    Approach the reader, the huntercat NFC LEDs should light up indicating if an NFC reader was detected.
    If it does not turn on and the LED stays on, it is not near an NFC reader.

    Hunter Cat NFC can be set to behave either as an NFC reader a tag or to establish a two-way connection with another NFC device.  Hunter Cat NFC features a SAMD21 MCU which works in conjunction with the PN7150. The USB interface is provided by SAMD21 MCU, and the NFC functionality is ensured thanks to PN7150. NFC is designed to be intuitive for users. The Communication between two devices is established in the simplest way possible — by bringing them close to each other. NFC frontend can operate in three distinct modes:

    Card emulation mode — where HunterCat NFC behaves like a smart card or a tag
    In this mode, HunterCat NFC emulates a NFC tag. It doesn’t initiate the communication, it only responds to a NFC reader. A typical application of the card emulation mode is how people use NFC in their smartphones to replace several cards, badges or tags at once (using the same phone for RFID access controls, contactless payments and so on). Card emulation mode, however, is not useful just for smartphones, but for any type of portable device.

    Read/Write — where HunterCat NFC behaves as an NFC Reader/Writer
    Here, Hunter Cat communicates with a passive tag, NFC smart card, or an NFC device operating in card emulation mode. It can read or write to a tag (although reading is a more common use-case because tags will often be write protected). In this mode, the HunterCat NFC generates the RF field, while a tag or card only modulates it.

    Peer-to-peer — for more complex interactions
    Peer-to-peer mode establishes a two-way communication channel between a pair of NFC-enabled devices. When a user brings two devices close to each other, the two NFC chips establish a P2P connection and exchange data.


    For more information and updates on the working modes visit:

    Examples video:


    -Procesador Cortex M0+
    -USB C 2.0
    -NFC Reader, Card and NFC Forum
    -Arduino compatible
    -CircuitPython compatible
    -UF2 Bootloader
    -3 LEDs status
    -Open Hardware
    -RF protocols supported
    -NFCIP-1, NFCIP-2 protocol
    -ISO/IEC 14443A, ISO/IEC 14443B PICC, NFC Forum T4T modes via host interface
    -NFC Forum T3T via host interface
    -ISO/IEC 14443A, ISO/IEC 14443B PCD designed according to NFC Forum digital protocol T4T platform and ISO---DEP
    -eliCa PCD mode
    -MIFARE Classic PCD encryption mechanism (MIFARE Classic 1K/4K)
    -NFC Forum tag 1 to 5 (MIFARE Ultralight, Jewel, Open FeliCa tag, MIFAREDESFire
    -ISO/IEC 15693/ICODE VCD mode
    -Includes NXP ISO/IEC14443-A and Innovatron ISO/IEC14443-B intellectual property licensing rights[/li][/list]
    Noticias y Eventos / Open Enchilada - Antonio Quirarte (Mayo 5)
    « Último mensaje por hkm on Mayo 06, 2021, 01:22:33 pm »

    Esta semana tenemos a Antonio Quirarte (@quirarte) fundador de para platicar sobre el movimiento maker y demás chacoteo geek
    Noticias y Eventos / IoT Security - A Holistic Security Assessment Methodology (Mayo 19)
    « Último mensaje por hkm on Mayo 06, 2021, 01:09:50 pm »

    1:30 PM - 2:10 PM PT May 19 RSA USA Virtual Conference 2021

    The Internet of Things (IoT) ecosystem is comprised of a large variety of connected devices that are rife with smart features and textbook vulnerabilities. In this session, we are going to discuss a holistic security assessment methodology for attacking IoT devices including techniques and attacks on network protocols and insecure implementations commonly found in IoT ecosystems.


    Fotios Chantzis
    Security Engineer, OpenAI

    Paulino Calderon
    Co-Founder, Websec
    Noticias y Eventos / RSA Conference 2021 (Mayo 17 - 20)
    « Último mensaje por hkm on Mayo 06, 2021, 01:06:39 pm »

    Every year brings with it new challenges. To you. To your employees. To your organization. The best weapon against these challenges? Resilience.

    RSA Conference 2021 is the best place to strengthen your resilience. From the first day to the last, you’ll gain actionable insights from hundreds of traditional and immersive sessions, collaborate and share different perspectives with peers that will spark new approaches, and see the latest technology.

    RSAC 2021 offers so much to help you grow your knowledge and advance your career. Explore everything it can offer, then join us May 17–20.