Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Last active March 15, 2023 15:15
Show Gist options
  • Save KonradIT/a1081724e40b76625af6 to your computer and use it in GitHub Desktop.
Save KonradIT/a1081724e40b76625af6 to your computer and use it in GitHub Desktop.
Wifi hacking for HERO4 Black

#HERO4 Black Wifi hacking, ep 1

URL for streaming: http://10.5.5.9/gp/gpExec?p1=gpTsFeeder&a1=%22%22&c1=restart&p2=gpStream&a2=%22%22&c2=restart

###Android decopilation APK


###Firmware studies


###Also firmware studies

@3v1n0
Copy link

3v1n0 commented Feb 10, 2015

With new firmware version (HD4.01.02.00.00) the streaming URIs have been changed to:

http://10.5.5.9:8080/gp/gpControl/execute?p1=gpStream&c1=restart
http://10.5.5.9:8080/gp/gpControl/execute?p1=gpStream&c1=stop

@blumunky
Copy link

blumunky commented Mar 2, 2015

I've been trying to use WiFi commands to delete timelapse images from a Hero4. This command works:
http://10.5.5.9/gp/gpControl/command/storage/delete/all

However, this command does not:
http://10.5.5.9/gp/gpControl/command/storage/delete?p=G0020154

Has anyone had luck with this command?

NOTE: I'm using the latest 2.0 firmware.

@novazembla
Copy link

Hi,

It might be a bit late but after trying several things I've found how to delete files on the gopro 4 with a firmware version 2.0 here is a list of all file related commands.

Request all media on cam:
http://10.5.5.9/gp/gpMediaList

Delete ALL files on cam:
http://10.5.5.9//gp/gpControl/command/storage/delete/all

Delete LAST files on cam:
http://10.5.5.9//gp/gpControl/command/storage/delete/last

Delete FILE on cam:
http://10.5.5.9/gp/gpControl/command/storage/delete?p=100GOPRO/GOPR1353.JPG

What you need to add is the last folder's name.

:)

@francisra
Copy link

I am trying to delete a file from a hero3+ black and the urls in the way.http://10.5.5.9/gp/gpControl/command/storage/delete?p=100GOPRO/GOPR1353.JPG does not work for me.

What is the rigth url for H3B+?

@andreidinca
Copy link

Hey, bud,
Great compilation! It's what convinced me to go upgrade my HERO4 Session to a HERO4 Black, understanding from above that while some settings don't work on the Session, they do work on the Black (like getting the battery status, ffmpeg streaming etc.).
However, my Black's wifi "API" seems to be just as bad as the Session's.

Here is my camera's version info:
"info version":"2.0",
"firmware version":"HD4.02.01.02.00",
"wifi mac":"d4d9199be74f",
"camera type":"HERO4 Black"

The battery status link is not working (error 500), the ffmpeg streaming comes with a huge delay etc.

Do you happen to have any idea why this is happening? Or a solution (like what specific firmware supports your list of links)?
Thank you so much,
Andrei

@andreidinca
Copy link

I fixed the lag problem. The right command is: ffplay -fflags nobuffer udp://10.5.5.9:8554

Please give me some advice about battery status reading.

Thanks,
Andrei D.

@AlexisTM
Copy link

Do anybody successfully connected to a WiFi network on the camera itself GPCAMERA_SSID_SELECT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment