|
|
|
OpenLDAP script to initialize created LDAP attribute |
Si vous voulez bloquer ce service sur vos fils RSS
Si vous voulez nous contacter ou nous proposer un fil RSS
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
OpenLDAP script to initialize created LDAP attribute Par Unix Cisco Hacks Le [2012-06-15] à 19:20:27
Présentation : Hola, Aqui un script tonto que acabo de hacer. Inicializa para todos los usuarios del directorio un atributo LDAP previamente creado en el esquema de OpenLDAP. bin bash v0.1 vlan7 15-VI-2012 Load single value on some LDAP attribute for all LDAP users Usage root vlan7 carga_masiva.sh Output TMPF RANDOM. LDIF filename Must be root if EUID -ne 0 then echo Bad luck, only root can run this code 1 2 exit 7 fi Get script dir. Will work with any combination of aliases, source, bash -c, symlinks, etc. SOURCE BASH_SOURCE 0 DIR dirname SOURCE while -h SOURCE do SOURCE readlink SOURCE SOURCE SOURCE DIR SOURCE DIR cd -P dirname SOURCE pwd done DIR cd -P dirname SOURCE pwd die echo 2 exit 7 User input is evil. Never trust a user -eq 2 die ERROR 2 arguments required, provided. Usage SOURCE Let's prepare to load some data on LDAP echo echo Enter whatever you want or just press ENTER TMPF RANDOM. while read LINE do if -z LINE then echo dn LINE, ou Users, dc el_dc DIR TMPF echo changetype modify DIR TMPF echo add 1 DIR TMPF echo 1 2 DIR TMPF echo DIR TMPF fi done ldapsearch -Wx -b ou Users,dc el_dc objectclass la_que_sea uid grep uid sed 's uid uid g' Get LDAP uid's echo echo LDIF generated echo echo Ready to load some data on LDAP so check DIR TMPF and launch this command _ONLY_ on LDAP provider echo echo ldapmodify -Wx -D cn admin,dc el_dc -f DIR TMPF exit 0 Logicamente yo implementaria SASL, pero a veces no depende de uno. Si se usa algun tipo de cifrado habria que quitar el flag -x de ldapsearch ldapmodify Quizas le sirva a alguien... 3. Lo aburrido y rutinario es malo. Hackers and creative people in general should never be bored or have to drudge at stupid repetitive work, because when this happens it means they aren't doing what only they can do solve new problems. This wastefulness hurts everybody. Therefore boredom and drudgery are not just unpleasant but actually evil. To behave like a hacker, you have to believe this enough to want to automate away the boring bits as much as possible, not just for yourself but for everybody else especially other hackers .
Les derniers articles du site " Unix Cisco Hacks " :
- tonel - basic stats checks for stunnel - Publicada lista de ponentes RootedCON 2013 - Ventanas con Grupo de delitos telemáticos de la Guardia Civil - NX ASLR Linux x64 Bypass - Mensaje de Hugo Castellano en RootedCON 2012 - blog2pdf re-uploaded - como puedo hacer que la victima ejecute netcat sin engañarle para que lo haga de forma manual - have a nice sunday - Capture the flag 2013 - Illiterate Ethiopian kids hack OLPCs in 5 months with zero instruction
Menu > Articles de la revue de presse : - l'ensemble [ tous | francophone] - par mots clé [ tous] - par site [ tous] - le tagwall [ voir] - Top bi-hebdo de la revue de presse [ Voir]
Si vous voulez bloquer ce service sur vos fils RSS :
- avec iptables "iptables -A INPUT -s 88.190.17.190 --dport 80 -j DROP"
- avec ipfw et wipfw "ipfw add deny from 88.190.17.190 to any 80"
- Nous contacter par mail
| Mini-Tagwall des articles publiés sur SecuObs : | | | | sécurité, exploit, windows, attaque, outil, microsoft, réseau, audit, metasploit, vulnérabilité, système, virus, internet, usbsploit, données, source, linux, protocol, présentation, scanne, réseaux, scanner, bluetooth, conférence, reverse, shell, meterpreter, vista, rootkit, détection, mobile, security, malicieux, engineering, téléphone, paquet, trames, https, noyau, utilisant, intel, wishmaster, google, sysun, libre |
| Mini-Tagwall de l'annuaire video : | | | | curit, security, biomet, metasploit, biometric, cking, password, windows, botnet, defcon, tutorial, crypt, xploit, exploit, lockpicking, linux, attack, wireshark, vmware, rootkit, conference, network, shmoocon, backtrack, virus, conficker, elcom, etter, elcomsoft, server, meterpreter, openvpn, ettercap, openbs, iphone, shell, openbsd, iptables, securitytube, deepsec, source, office, systm, openssh, radio |
| Mini-Tagwall des articles de la revue de presse : | | | | security, microsoft, windows, hacker, attack, network, vulnerability, google, exploit, malware, internet, remote, iphone, server, inject, patch, apple, twitter, mobile, virus, ebook, facebook, vulnérabilité, crypt, source, linux, password, intel, research, virtual, phish, access, tutorial, trojan, social, privacy, firefox, adobe, overflow, office, cisco, conficker, botnet, pirate, sécurité |
| Mini-Tagwall des Tweets de la revue Twitter : | | | | security, linux, botnet, attack, metasploit, cisco, defcon, phish, exploit, google, inject, server, firewall, network, twitter, vmware, windows, microsoft, compliance, vulnerability, python, engineering, source, kernel, crypt, social, overflow, nessus, crack, hacker, virus, iphone, patch, virtual, javascript, malware, conficker, pentest, research, email, password, adobe, apache, proxy, backtrack |
|
|
|
|
|