Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 3812

"auth-email" header

by mong0lian - 27 June, 2023 - 05:14 AM
This post is by a banned member (mong0lian) - Unhide
mong0lian  
Registered
110
Posts
5
Threads
1 Year of service
#1
Can someone please help a brother out? In silver bullet i'm trying to base64 encode the <User> variable. 
Code:
auth-email d2FuZ3dhbmcxMDAxQGdtYWlsLmNvbQ
For example, I'm trying to not make this header static
This post is by a banned member (mong0lian) - Unhide
mong0lian  
Registered
110
Posts
5
Threads
1 Year of service
#2
(27 June, 2023 - 05:14 AM)mong0lian Wrote: Show More
Can someone please help a brother out? In silver bullet i'm trying to base64 encode the <User> variable. 
Code:
auth-email d2FuZ3dhbmcxMDAxQGdtYWlsLmNvbQ
For example, I'm trying to not make this header static

Chat GPT helped ya boy out, got it done in python.
This post is by a banned member (SirGhost) - Unhide
SirGhost  
Godlike
1.121
Posts
436
Threads
3 Years of service
#3
<USER> not <User>
[Image: aveMEwA.png]
This post is by a banned member (ThomasIngram) - Unhide
1
Posts
0
Threads
1 Year of service
#4
Here is how you can base64 encode a variable in Silver Bullet:
 
Code:
 
import base64

user = "<User>" 

# Encode the user variable 
encoded_user = base64.b64encode(user.encode("ascii"))

# Decode to show it worked
print(encoded_user) 
print(base64.b64decode(encoded_user))

# Use the encoded user in header
headers = { 
    "Authentication": "Basic " + encoded_user.decode("ascii") 
}
 The key steps: bad time simulator
  1. Import base64 module
  2. Encode the user variable to base64 using 
    Code:
    base64.b64encode(user.encode("ascii"))
  3. The output is in bytes, so decode to string with 
    Code:
    .decode("ascii")
  4. Include the encoded user in the Authentication header

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)