Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to use HF blackjack script.

Took me a minute to get it working so thought i'd share the from scratch.
Credits to both the authors.
https://hackforums.net/member.php?action...uid=716331
https://hackforums.net/member.php?action...id=2431710

https://hackforums.net/showthread.php?tid=5901348

//For reference i'ma keep running it but I started with 450 bytes.

On Windows.

Go to
https://www.python.org/
Download 3.7.1 for windows.
[Image: dC9Izcc.png]

When you click to install check the tick box at the bottom that says install for path.

[Image: ehIqxa6.jpg]

Now open CMD (press windows + r on your keyboard then type cmd)
Type in the following 1 after the other:
Code
python -m pip install --upgrade pip
Code
pip install requests
Code
pip install matplotlib

Your output should be similar to the below
Code
C:\Users\Mr. Robot>pip install requests
Collecting requests
 Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB)
   100% |████████████████████████████████| 61kB 2.3MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests)
 Downloading https://files.pythonhosted.org/packages/8c/4b/5cbc4cb46095f369117dcb751821e1bef9dd86a07c968d8757e9204c324c/urllib3-1.24-py2.py3-none-any.whl (117kB)
   100% |████████████████████████████████| 122kB 4.8MB/s
Collecting certifi>=2017.4.17 (from requests)
 Downloading https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl (146kB)
   100% |████████████████████████████████| 153kB 4.0MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests)
 Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
   100% |████████████████████████████████| 143kB 4.5MB/s
Collecting idna<2.8,>=2.5 (from requests)
 Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
   100% |████████████████████████████████| 61kB 4.4MB/s
Installing collected packages: urllib3, certifi, chardet, idna, requests
Successfully installed certifi-2018.10.15 chardet-3.0.4 idna-2.7 requests-2.20.0 urllib3-1.24

C:\Users\Mr. Robot>pip install matplotlib
Collecting matplotlib
 Downloading https://files.pythonhosted.org/packages/01/57/ea829da613b3eb1d1b18d85ba3be8d41b2bdd61997960c30824a1059a663/matplotlib-3.0.1-cp37-cp37m-win32.whl (8.7MB)
   100% |████████████████████████████████| 8.7MB 2.7MB/s
Collecting kiwisolver>=1.0.1 (from matplotlib)
 Downloading https://files.pythonhosted.org/packages/63/95/6e03c1e40776851eda7af2e9b014bcf510e3205033c33b604c2ee36687a1/kiwisolver-1.0.1-cp37-none-win32.whl (44kB)
   100% |████████████████████████████████| 51kB 327kB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
 Downloading https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl (59kB)
   100% |████████████████████████████████| 61kB 5.7MB/s
Collecting python-dateutil>=2.1 (from matplotlib)
 Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
   100% |████████████████████████████████| 235kB 6.2MB/s
Collecting numpy>=1.10.0 (from matplotlib)
 Downloading https://files.pythonhosted.org/packages/50/42/f8310b51b3b9deccff3fe2e2b4e627ac8010f435f622ad225cd3ca6936ce/numpy-1.15.3-cp37-none-win32.whl (9.9MB)
   100% |████████████████████████████████| 9.9MB 2.8MB/s
Collecting cycler>=0.10 (from matplotlib)
 Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\mr. robot\appdata\local\programs\python\python37-32\lib\site-packages (from kiwisolver>=1.0.1->matplotlib) (39.0.1)
Collecting six>=1.5 (from python-dateutil>=2.1->matplotlib)
 Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: kiwisolver, pyparsing, six, python-dateutil, numpy, cycler, matplotlib
Successfully installed cycler-0.10.0 kiwisolver-1.0.1 matplotlib-3.0.1 numpy-1.15.3 pyparsing-2.3.0 python-dateutil-2.7.5 six-1.11.0

Create a new folder on your computer
Now download or copy past this to a notepad file and save as blackjack.py (change to all file types when saving) and put it in that folder
https://pastebin.com/fesfKY8H
On HackForums, view the source code of the page(right click) and find your postkey and put it in the top of that file
Code
#CHANGE THE POST KEY BELOW DO NOT CHANGE ANYTHING ELSE
post_key = '000000XXXX0X000X00X0X'

[Image: 5TVtGo5.png]

Install
https://chrome.google.com/webstore/detai...fjfg?hl=en
Then in the top right corner of your chrome, click the extension and choose
# To download cookies for this tab click here, or download all cookies.
While on the blackjack page, you can just click 'Click here'
[Image: DD8Ub6a.png]

Now you have a cookies.txt file. Move that to the same folder as your blackjack.py file.
[Image: nEBr99k.png]

In your CMD window - type in
Code
cd c:/users/username/path
Where it would be the path of your folder containing cookies.txt and blackjack.py

In the same CMD window once you are in that path, simply type
Code
python blackjack.py
[Image: F2HBpfq.png]

[Image: LhSL6t2.png]

*Will update this if I missed anything or you guys need a better explanation

Gamble your bytes responsibly. Here's an image of if going great one minute then bad the next.
[Image: xlcrUbb.png]
Note: This script is not mine. I just made a slight modification to make things easier. (post_key simplification and user agent)

It's created by ๖ۣۜLeonardo Da Vinci, originally posted in this thread  https://hackforums.net/showthread.php?tid=5901348

If any users get a 403 error or can't get it running on Linux/OSX it's most likely due to user agent

Just go to google and search for ' what is my user agent'

You will get something like this

Your user agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Copy the red part and edit the 2 lines in the script that have the user agent.
(Oct 31, 2018 06:04 PM)Cryptic™ Wrote:  Note: This script is not mine. I just made a slight modification to make things easier. (post_key simplification and user agent)

It's created by ๖ۣۜLeonardo Da Vinci, originally posted in this thread  https://hackforums.net/showthread.php?tid=5901348

I didn't add the thread in but added both your user profiles at the top just before you replied. I'll add the thread in too.

(Oct 31, 2018 06:04 PM)Cryptic™ Wrote:  Note: This script is not mine. I just made a slight modification to make things easier. (post_key simplification and user agent)

It's created by ๖ۣۜLeonardo Da Vinci, originally posted in this thread  https://hackforums.net/showthread.php?tid=5901348

Spoiler (Click to View)

Didn't wanna add that part in due to anyone wanting to follow this on a diff OS is going to have more issues than just a useragent.
Earlier I started writing a userscript for autoplaying blackjack, just hooking into the JS on the actual page. Not sure if I'll finish it but if I do I'll release it.
This script does look nice, though.
[Image: QiUbeYa.png]
(Oct 31, 2018 06:11 PM)IcYSeptember Wrote:  Earlier I started writing a userscript for autoplaying blackjack, just hooking into the JS on the actual page. Not sure if I'll finish it but if I do I'll release it.
This script does look nice, though.

That would be much more convenient. Wish I was proficient in JS.

Good luck
(Oct 31, 2018 06:15 PM)Cryptic™ Wrote:  That would be much more convenient. Wish I was proficient in JS.

Good luck

It would be but this works too so meh not a big deal.
Mine is still running, not broke yet.
Would also mention not to share your post key
🚀 Signature space for sale! PM me if you’re interested.
I had issues with the captcha, but followed Cryptic's solution and changed the user agent. Issue solved and still running on Elementary OS Juno.
Well explained how to, good job.
Thank you for taking the time to make this guide. This definitely would have saved me some time when setting everything up.
(Nov 2, 2018 06:31 AM)Yin Yang Wrote:  Would also mention not to share your post key

The fact I added an image with mine crossed out should give enough info for it to be private ;)
(Nov 2, 2018 06:39 AM)Mr. Robot Wrote:  The fact I added an image with mine crossed out should give enough info for it to be private ;)
True. Let’s hope no one’s stupid enough to reveal it 🙂
🚀 Signature space for sale! PM me if you’re interested.
Thank you for sharing, will get some bytes and start using this ;P
\(〇_o)/
Do we also have to download Python if we're running MacOS?
Someone told me it's pre installed on it.
Signature space for rent. Send me a PM or buy it here.
[Image: ux8AIrU.png]
(Nov 2, 2018 07:03 AM)Michael Wrote:  Do we also have to download Python if we're running MacOS?
Someone told me it's pre installed on it.

Nope no need to dl but update maybe


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Cheap AIMay 19, 2026 08:36 AM 5 170 May 19, 2026 08:36 AM
Last Post: Timi999
by Not CloffelMay 1, 2026 02:11 PM 4 159 May 1, 2026 02:11 PM
Last Post: Decodo9000
by SIM-3107656Jan 2, 2026 08:40 AM 2 129 Jan 2, 2026 08:40 AM
Last Post: 6