HTB | Full of Stars challenge flag FREE
by robinia - Wednesday November 20, 2024 at 10:26 AM
#1
HTB | Full of Stars  the flag of the hard challenge  category AI - ML
Full of Stars    HTB{4ll_7h3se_w0r1ds_4r3_y0Ur5_exc3p7_3Ur0P4}
Reply
#2
A free share like this? You the man.
Did you get this from elsewhere or solve it?
Reply
#3
(11-20-2024, 11:18 AM)Gr1msl33p3r Wrote: A free share like this? You the man.
Did you get this from elsewhere or solve it?

I got this  from somewhere on the internet and followed it and got to the flag.
Greetz Robinia


{
"cells": [
  {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {},
  "outputs": [],
  "source": [
    "import matplotlib.pyplot as plt\n",
    "import numpy as np"
  ]
  },
  {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {},
  "outputs": [],
  "source": [
    "data = np.loadtxt(\"data.npy.gz\")\n",
    "core_data = np.loadtxt(\"known_samples.npy.gz\")\n",
    "all_data = np.vstack((core_data, data))\n",
    "del data\n",
    "\n",
    "class_count = len(core_data)"
  ]
  },
  {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {},
  "outputs": [],
  "source": [
    "out_labels = np.full((all_data.shape[0],), -1)"
  ]
  },
  {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {},
  "outputs": [],
  "source": []
  },
  {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {},
  "outputs": [],
  "source": [
    "assert(np.all(np.logical_and(0 <= out_labels, out_labels < 256)))\n",
    "\n",
    "file_data = bytearray(out_labels[256:].shape[0])\n",
    "for ix, val in enumerate(out_labels[256:]):\n",
    "    file_data[ix] = val\n",
    "file_data = bytes(file_data)\n",
    "with open(\"flag.jpg\", \"wb\") as outfile:\n",
    "    outfile.write(file_data)\n",
    "del file_data"
  ]
  }
],
"metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
  "display_name": "Python 3",
  "language": "python",
  "name": "python3"
  },
  "language_info": {
  "codemirror_mode": {
    "name": "ipython",
    "version": 3
  },
  "file_extension": ".py",
  "mimetype": "text/x-python",
  "name": "python",
  "nbconvert_exporter": "python",
  "pygments_lexer": "ipython3",
  "version": "3.6.13"
  },
  "vscode": {
  "interpreter": {
    "hash": "5f052520b2ef76fc04cca7b88e5fa959247ecc46a09cd2037d83a5cd21753f46"
  }
  }
},
"nbformat": 4,
"nbformat_minor": 1
}
Reply
#4
awesome, thank you so much!
Reply
#5
hello my idol, actually what machine name of this? i  try search "Full of Stars" didn't found, please help me
Ban reason: Leeching | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you feel this is incorrect. (Permanent)
Reply
#6
(11-21-2024, 05:01 PM)LemanX Wrote: hello my idol, actually what machine name of this? i  try search "Full of Stars" didn't found, please help me

https://app.hackthebox.com/challenges/Fu...%2520Stars
Reply
#7
Great job! Thank you very much for this.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] CPTS 12 FLAGS pulsebreaker 59 1,150 03-28-2026, 06:26 PM
Last Post: vilas033
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 360 88,710 03-28-2026, 09:28 AM
Last Post: catsweet
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 16 2,276 03-28-2026, 03:32 AM
Last Post: lulaladrow
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 2,348 03-28-2026, 03:30 AM
Last Post: lulaladrow
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 597 88,992 03-27-2026, 10:54 PM
Last Post: w3soul



 Users browsing this thread: 1 Guest(s)