HTB GreenHorn
by Unbutton8074 - Saturday July 20, 2024 at 07:50 PM
#41
(Jul 21, 2024, 07:08 AM)shadow_monarch Wrote: ┌──(kali㉿kali)-[~/Hackthebox/greenhorn/Depix]
└─$ python depix.py -p ../output_prefix-000.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png
2024-07-21 03:07:30,112 - Loading pixelated image from ../output_prefix-000.png
Traceback (most recent call last):
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 181, in <module>
    main()
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 93, in main
    pixelatedImage = LoadedImage(pixelatedImagePath)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 13, in __init__
    self.imageData = self.__loadImageData()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 29, in __loadImageData
    _imageData[x][y] = rawData[rawDataCount][0:3]
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'int' object is not subscriptable







facing this error

Same thing happens to me
Reply
#42
(Jul 21, 2024, 07:08 AM)shadow_monarch Wrote: ┌──(kali㉿kali)-[~/Hackthebox/greenhorn/Depix]
└─$ python depix.py -p ../output_prefix-000.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png
2024-07-21 03:07:30,112 - Loading pixelated image from ../output_prefix-000.png
Traceback (most recent call last):
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 181, in <module>
    main()
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 93, in main
    pixelatedImage = LoadedImage(pixelatedImagePath)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 13, in __init__
    self.imageData = self.__loadImageData()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 29, in __loadImageData
    _imageData[x][y] = rawData[rawDataCount][0:3]
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'int' object is not subscriptable







facing this error


try ppm file , it worked for me

python depix.py -p ../output_prefix-000.ppm -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png
Reply
#43
(Jul 21, 2024, 07:11 AM)Th3B4h0z Wrote:
(Jul 21, 2024, 07:08 AM)shadow_monarch Wrote: ┌──(kali㉿kali)-[~/Hackthebox/greenhorn/Depix]
└─$ python depix.py -p ../output_prefix-000.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png
2024-07-21 03:07:30,112 - Loading pixelated image from ../output_prefix-000.png
Traceback (most recent call last):
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 181, in <module>
    main()
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 93, in main
    pixelatedImage = LoadedImage(pixelatedImagePath)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 13, in __init__
    self.imageData = self.__loadImageData()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 29, in __loadImageData
    _imageData[x][y] = rawData[rawDataCount][0:3]
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'int' object is not subscriptable







facing this error


try ppm file , it worked for me

python depix.py -p ../output_prefix-000.ppm -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png

thank you
Reply
#44
I summarized what I did for user.txt here:

https://github.com/stdmedoth/FlagsHackTh.../report.md
Reply
#45
(Jul 21, 2024, 07:16 AM)shadow_monarch Wrote:
(Jul 21, 2024, 07:11 AM)Th3B4h0z Wrote:
(Jul 21, 2024, 07:08 AM)shadow_monarch Wrote: ┌──(kali㉿kali)-[~/Hackthebox/greenhorn/Depix]
└─$ python depix.py -p ../output_prefix-000.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png
2024-07-21 03:07:30,112 - Loading pixelated image from ../output_prefix-000.png
Traceback (most recent call last):
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 181, in <module>
    main()
  File "/home/kali/Hackthebox/greenhorn/Depix/depix.py", line 93, in main
    pixelatedImage = LoadedImage(pixelatedImagePath)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 13, in __init__
    self.imageData = self.__loadImageData()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Hackthebox/greenhorn/Depix/depixlib/LoadedImage.py", line 29, in __loadImageData
    _imageData[x][y] = rawData[rawDataCount][0:3]
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'int' object is not subscriptable







facing this error


try ppm file , it worked for me

python depix.py -p ../output_prefix-000.ppm -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o pass_root.png




Thanks bro it worked <3

root password sidefromsidetheothersidesidefromsidetheotherside

I got the same password, but it doesn't work (wrong flag on htb)... What did i missed ?
Reply
#46
(Jul 21, 2024, 06:46 AM)binbo Wrote:
(Jul 21, 2024, 06:04 AM)godweini Wrote:
(Jul 21, 2024, 06:00 AM)binbo Wrote: how are you guys pulling the pdf off the server?
you can run "python3 -m http.server 9999" in the server
Thank you, brain farted and I kept trying just regular python!
Got the PDF, and have uncovered the blurry part, but I'm not sure if or what the answer is? Should it have something to do with sides? What I'm seeing isn't working as the root pass?

yes, the side is the root password , i have been using ssh and got stuck, you can use su root
Reply
#47
(Jul 21, 2024, 07:52 AM)godweini Wrote:
(Jul 21, 2024, 06:46 AM)binbo Wrote:
(Jul 21, 2024, 06:04 AM)godweini Wrote:
(Jul 21, 2024, 06:00 AM)binbo Wrote: how are you guys pulling the pdf off the server?
you can run "python3 -m http.server 9999" in the server
Thank you, brain farted and I kept trying just regular python!
Got the PDF, and have uncovered the blurry part, but I'm not sure if or what the answer is? Should it have something to do with sides? What I'm seeing isn't working as the root pass?

yes, the side is the root password , i have been using ssh and got stuck, you can use su root

Damn i'm brain dead,  i thought the blurry password was the flag XD
Thx a lot!
Reply
#48
why didn't the root password worked for me
Reply
#49
(Jul 20, 2024, 11:06 PM)ThreeCleaves Wrote:
(Jul 20, 2024, 11:02 PM)creeman Wrote: Can anyone tell me the root pasword??

If your having issues with Depix, try extracting the image with pdfimage from poppler-utils.

I was having an issue with my source image. Once I extracted it with pdfimage i was able to unblur the image.

Tyvm! Spent longer then I'd like to admit stuck on what I was doing wrong with that tool <3
Reply
#50
Where can i find the login page for pluck? With http://greenhorn.htb/login.php I get 404, The script for me doesnt really work so I want to do it manually...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,575 1 hour ago
Last Post: popoler
  [FREE] CPTS 12 FLAGS pulsebreaker 66 1,816 8 hours ago
Last Post: vlka
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 370 92,659 Yesterday, 05:05 PM
Last Post: lifolifo007
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,230 Yesterday, 02:10 PM
Last Post: kkkato
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 422 Apr 29, 2026, 10:36 PM
Last Post: op334

Forum Jump:


 Users browsing this forum: 1 Guest(s)