Patrick-DE / RTT-Docs

Public repository for the techniques and tools shown on rtt.secdu.de
GNU Affero General Public License v3.0
1 stars 0 forks source link

New tool: ldapmodify #89

Closed Patrick-DE closed 1 year ago

Patrick-DE commented 1 year ago
{
  "name": "ldapmodify",
  "phases": [
    "05. Privilege Escalation",
    "07. Lateral Movement",
    "04. Persistence"
  ],
  "category": "",
  "stealthy": false,
  "platforms": [
    "Windows",
    "Linux"
  ],
  "source": "https://www.thegeekstuff.com/2015/02/openldap-add-users-groups/",
  "description": "Add user to OU",
  "undetected": [],
  "detected": [],
  "content": "# ldapadd\n\n## [[Create Account]]\nAdd a new user to the AD via ldap\n1. Create the file called user.ldif.txt\n    '''bash\n    # jdoe, Users, maxcrc.com\n    dn: uid=jdoe,ou=People,dc=maxcrc,dc=com \n    ObjectCIass: posixAccount \n    objectC1ass: top \n    objectC1ass: inetOrgPerson \n    givenName: John \n    sn: Doe \n    uid: jdoe \n    homeDirectory: /home/jdoe \n    cn: jdoe \n    uidNumber: 18735 \n    gidNumber: 500\n    '''\n2. Apply the file and add an element to the LDAP:\n    '.\\ldapmodify.exe -a -x -h 127.0.0.1 -D cn=Manager,dc=maxcrc,dc=com -W -f .\\user.ldif.txt'\n\n\n",
  "commands": [
    {
      "id": "066bf9e7-0ad4-41e5-888d-052165b22185",
      "name": "Add new domain user",
      "description": "",
      "tag": "",
      "results": [
        "COMPUTER:USERS"
      ],
      "cmd": "1. Create the file called user.ldif.txt\n# jdoe, Users, maxcrc.com\ndn: uid=jdoe,ou=People,dc=maxcrc,dc=com \nObjectCIass: posixAccount \nobjectC1ass: top \nobjectC1ass: inetOrgPerson \ngivenName: John \nsn: Doe \nuid: jdoe \nhomeDirectory: /home/jdoe \ncn: jdoe \nuidNumber: 18735 \ngidNumber: 500\n\n2. Apply the file and add an element to the LDAP\n.\\ldapmodify.exe -a -x -h 127.0.0.1 -D cn=Manager,dc=maxcrc,dc=com -W -f .\\user.ldif.txt"
    }
  ]
}