Proyecto Cracking #1: De la Escalada de Privilegios a Hashcat

Proyecto Cracking 1: flujo de cracking en un laboratorio autorizado con Metasploitable2, passwd/shadow hasta Hashcat, destacando seguridad y buenas prácticas.

8 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Proyecto Cracking 1: De la Escalada de Privilegios a Hashcat

Objetivo

Aprender y aplicar de forma controlada el flujo completo de cracking de contraseñas en un entorno de laboratorio con Metasploitable2, reforzando buenas prácticas de ciberseguridad y entendiendo por qué la elección de wordlists y algoritmos de hashing importa para defensores y equipos Red Team.

Contexto ético

Este contenido está orientado a investigación y formación en ciberseguridad dentro de entornos autorizados y controlados. Nunca realices pruebas en sistemas donde no tengas permiso explícito.

Paso 1. Volcado de archivos shadow y passwd

Comandos utilizados:

scp msfadmin@:/etc/passwd ./passwd

scp msfadmin@:/etc/shadow ./shadow

Paso 2. Unión de ambos en un archivo de hashes

Comando utilizado:

unshadow passwd shadow > combined.txt

Paso 3. Ejecución de Hashcat sobre los hashes

Comando utilizado:

hashcat -m 500 -a 0 combined.txt /usr/share/wordlists/rockyou.txt

Resultados

Se extrajeron los hashes correctamente. Se intentó el cracking con Hashcat. La contraseña de root no se recuperó con la wordlist por defecto.

Lecciones aprendidas

El cracking efectivo depende de wordlists robustas y, en algunos casos, de enfoques de fuerza bruta. El flujo de trabajo y la higiene del proceso son tan relevantes como el resultado. Para defensores, es clave imponer contraseñas fuertes, políticas de rotación y algoritmos modernos de hashing con sal y factor de coste.

Próximos pasos

Probar wordlists personalizadas y combinaciones basadas en reglas. Evaluar métodos de fuerza bruta de forma responsable en laboratorio. Pasar al siguiente reto de Red Teaming centrado en DVWA y SQL injection.

Cómo te ayuda Q2BSTUDIO

En Q2BSTUDIO somos una empresa de desarrollo de software con foco en aplicaciones a medida y software a medida, especialistas en inteligencia artificial, ciberseguridad, servicios cloud AWS y Azure, servicios inteligencia de negocio y power bi, además de automatización de procesos y agentes IA para empresas. Si necesitas fortalecer tu postura defensiva, realizar pentesting recurrente o diseñar playbooks de respuesta, nuestro equipo puede ayudarte de extremo a extremo. Descubre nuestros servicios de auditoría y pruebas de intrusión en la página de ciberseguridad y pentesting.

IA y ciberseguridad

La inteligencia artificial potencia la detección de anomalías, el hardening basado en riesgos y la generación de insights para SOC, además de acelerar la creación de herramientas defensivas. Conoce cómo aplicamos ia para empresas y agentes IA en tus procesos en nuestra sección de inteligencia artificial.

Conclusión

Más allá de recuperar contraseñas en laboratorio, el verdadero valor está en dominar el proceso, documentar evidencias y traducir hallazgos en medidas preventivas. Q2BSTUDIO te acompaña con soluciones seguras y escalables, desde ciberseguridad y aplicaciones a medida hasta servicios cloud AWS y Azure e iniciativas de business intelligence con power bi.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat