Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto USB not working, unsure why. #8

Closed
Doyle4 opened this issue Jan 7, 2022 · 4 comments
Closed

Auto USB not working, unsure why. #8

Doyle4 opened this issue Jan 7, 2022 · 4 comments
Labels
question Further information is requested

Comments

@Doyle4
Copy link

Doyle4 commented Jan 7, 2022

Sorry its me again,
When I load GoldHen without a Index/Payload.html everything goes smooth, exploit loads without popup messages which I really like. I created a index and payload.html, Press GoldHen, says loading exploit and then a popup appears asking to insert USB drive, nothing happens after this.

If you have a spare couple of minutes, would it be possible to see what I have done wrong please? HTML and coding is very new to me and a little clueless, searched on Google without results, I maybe searching wrong. Cant figure out why a Index/payload.html is stopping everything from working as it should. As soon I remove Index/Payloads.html it works.

Thanks.

index.html.gz
payloads.html.gz

@stooged
Copy link
Owner

stooged commented Jan 7, 2022

you are loading a page called "GoldHEN v2.0b2.html"

if that page was created with bin2html or bin2gz it does not have the auto usb coding so you will get a popup for the usb

the best way is to target the internal loader.html and load the .bin directly instead of using bin2html.

you add this function to the payloads.html

<script>
function setpayload(payload,title,waittime){ 
   sessionStorage.setItem('payload', payload); 
   sessionStorage.setItem('title', title); 
   sessionStorage.setItem('waittime', waittime);  
   window.open('loader.html', '_self');}
</script>

and load the payload from the button like this

<a onclick="setpayload('GoldHEN+v2.0b2.bin', 'GoldHEN v2.0b2', '10000')"><button class="btn"></button></a>

this is an example from your payloads.html.
just note in your payloads.html you have 2 body tags and 2 head tags, i wont change those errors i will just add the code to use the loader.html so you can compare the changes to your html file.


<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
</style>

<script>
function setpayload(payload,title,waittime){ 
   sessionStorage.setItem('payload', payload); 
   sessionStorage.setItem('title', title); 
   sessionStorage.setItem('waittime', waittime);  
   window.open('loader.html', '_self');}
</script>

</head>
<body>
		
		<h2>HTML Image</h2>
		<img src="Banner.jpg" alt="Banner" width="760" height="230" >
		
		</body>
		</html>
<head>
<meta name="viewport" content= width=device-width, initial-scale=1">
<title>PS4 9.00 Auto USB Loader</title/>
<style>
.btn {
    background-color: white;
    border: none;
    color: rgb(0, 0, 0);
	height: 5%;
	width: 13,7%;
    font-size: medium;;
    cursor: pointer;
	font-weight: bold;
}
.btn:hover {
    background-color: rgb(237, 241, 0);
}

body {
	background-color:#000000;
	color: #000024;
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 0 0.0;
	overflow-y:hidden;
} 

.main {
	padding: 0px 0px;
	position: absolute; 
	top: 0; 
	right: 0;
	bottom: 0; 
	left: 0;
	overflow-y:hidden;
}
</style>
</head>
<body>
<center>
<h1 id=msgs style='font-size:40px;text-align:center;color:white'>Press GoldHen to Xploit</h1>
<p></p><br>
<a onclick="setpayload('GoldHEN+v2.0b2.bin', 'GoldHEN v2.0b2', '10000')"><button class="btn"></button></a>&nbsp;
<p></p><br>
</center>
</body>
</html>

@stooged
Copy link
Owner

stooged commented Jan 7, 2022

this one is without those duplicate tag errors


<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PS4 9.00 Auto USB Loader</title>
<style>
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn {
    background-color: white;
    border: none;
    color: rgb(0, 0, 0);
	height: 5%;
	width: 13,7%;
    font-size: medium;;
    cursor: pointer;
	font-weight: bold;
}
.btn:hover {
    background-color: rgb(237, 241, 0);
}
body {
	background-color:#000000;
	color: #000024;
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 0 0.0;
	overflow-y:hidden;
} 
.main {
	padding: 0px 0px;
	position: absolute; 
	top: 0; 
	right: 0;
	bottom: 0; 
	left: 0;
	overflow-y:hidden;
}
</style>
<script>
function setpayload(payload,title,waittime){ 
   sessionStorage.setItem('payload', payload); 
   sessionStorage.setItem('title', title); 
   sessionStorage.setItem('waittime', waittime);  
   window.open('loader.html', '_self');}
</script>
</head>
<body>

		<h2>HTML Image</h2>
		<img src="Banner.jpg" alt="Banner" width="760" height="230" >
		
<center>
<h1 id=msgs style='font-size:40px;text-align:center;color:white'>Press GoldHen to Xploit</h1>
<p></p><br>
<a onclick="setpayload('GoldHEN+v2.0b2.bin', 'GoldHEN v2.0b2', '10000')"><button class="btn"></button></a>&nbsp;
<p></p><br>
</center>
</body>
</html>

@stooged stooged added the question Further information is requested label Jan 7, 2022
@stooged stooged closed this as completed Jan 7, 2022
@Doyle4
Copy link
Author

Doyle4 commented Jan 7, 2022

Thank you very much for taking your time to help me with this.
Thanks so much for the examples, you are correct, I have used bin2html to convert and now make sense why the loader function didn't work after conversion.
Once home will compare the differences.

Thank you again.

@Doyle4
Copy link
Author

Doyle4 commented Jan 7, 2022

Working great thank you!

Did the comparison and I can see what you changed thank you.
Im assuming Index.html can be left out, or used to change the background colour to match payloads.html etc.

Learnt a lot over the last couple days, I appreciate your help thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants