Skip to main content
  1. Posts/

"NanoCorp" by Hack The Box - A "Hard" Linux Box Writeup

·295 words·2 mins
Lacroix Raphaël (Chepycou)
Author
Lacroix Raphaël (Chepycou)
I’m Raphaël LACROIX, a French computer scientist developping various applications in my free time ranging from definitely useless to somewhat usefull. I also do quite a lot of Capture the flag and cybersecurity challenges. I am currently looking for a Penetration Tester position in Toulouse (or in full remote).
Table of Contents
Hack The Box Hard Boxes - This article is part of a series.
Part : This Article

This box is a “Hard” Linux box by HackTheBox.

User flag
#

Usual first scans :
#

mkdir scans loot shares
nmap -A 10.129.47.206 -vvv -oA scans/first_scan
nmap -A 10.129.47.206 -vvv -p- -oA scans/full_scan
nmap -sU -A 10.129.47.206 --top-port 100 -vvv -oA scans/first_scan_udp
53/tcp   open  domain            syn-ack ttl 127 Simple DNS Plus
80/tcp   open  http              syn-ack ttl 127 Apache httpd 2.4.58 (OpenSSL/3.1.3 PHP/8.2.12)
|_http-title: Did not follow redirect to http://nanocorp.htb/
|_http-server-header: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
| http-methods: 
|_  Supported Methods: GET HEAD POST OPTIONS
88/tcp   open  kerberos-sec      syn-ack ttl 127 Microsoft Windows Kerberos (server time: 2025-11-09 02:03:05Z)
135/tcp  open  msrpc             syn-ack ttl 127 Microsoft Windows RPC
139/tcp  open  netbios-ssn       syn-ack ttl 127 Microsoft Windows netbios-ssn
389/tcp  open  ldap              syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: nanocorp.htb0., Site: Default-First-Site-Name)
445/tcp  open  microsoft-ds?     syn-ack ttl 127
464/tcp  open  kpasswd5?         syn-ack ttl 127
593/tcp  open  ncacn_http        syn-ack ttl 127 Microsoft Windows RPC over HTTP 1.0
636/tcp  open  ldapssl?          syn-ack ttl 127
3268/tcp open  ldap              syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: nanocorp.htb0., Site: Default-First-Site-Name)
3269/tcp open  globalcatLDAPssl? syn-ack ttl 127
5986/tcp open  ssl/http          syn-ack ttl 127 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)

This looks like a regular AD box (with winRM on the SSL port rather than the usual) let’s note the nanocorp.htb domain and an Apache httpd 2.4.58 running on web port. (We also see a DC01 outside this extract) We can add the following to our /etc/hosts :

The content of this article is currently restricted due to HackTheBox’s policies. This blog post will remain private until the machine is retired. Have fun and don’t hesitate to DM me to ask questions on Discord (through the HTB Discord), Linkedin or on X ;)

In the meantime you can follow me on HTB :

Chepycou

Hack The Box Hard Boxes - This article is part of a series.
Part : This Article