Sign in to follow this  
0xwarning

C# Coding Examples [Learn C#] [Get Token/CustomCookies][Cracker/Checkers]

Recommended Posts

Im back with another thread.

Today learn how to get a auth token from a site.

 

[hide]

 

Step One

 

First Find A Site 

 

CTRL+SHIFT+I Then Navigate to Network

 

Step Two

 

You should Notice Something Will Popup in networks tab

 

Like

This

 

Sort through them until you find something that looks like a login (Only way i can explain)

 

Step Three

 

Open Up

Postman

Fill in The Info

Like

This

 

Press Send And See if it works.

 

If it does Continue to Step 4

 

Step Four

 

Not Providing Full Source Or You will Not Learn

 

Now make a using statement with HttpRequest Like Below.

           using (HttpRequest httpRequest = new HttpRequest())
           {

           }

Step Five

 

To add custom headers 

Some Services Require certain headers (See Step Seven)

                           httpRequest.AddHeader("Header", "Value");

Step Six

 

Now We Can Find Cookies And Search For Specific Ones For Example See Below

               string Cookie = httpRequest.Get("https://anonfile.com/login", (RequestParams)null).Cookies.ToString().Replace("XSRF-TOKEN=", "Token=").Replace("USERSESSID=", "\nSESSION ID=").Replace("bpva=", "\nBPVA="); // Analyse The Cookes You Need
               Colorful.Console.WriteLine(Cookie, Color.Green); // Now We Need To See Them

Step Seven (Analyse The Request Properly)

 

Since I Do Not Want to spoonfeed you guys.

You need to learn 

 

The Data you need to do the login should be at the bottom of the network tab

 

Some Headers Are Required to login to certain sites so you need to make sure to add headers that are needed.

You can use postman to help you simulate the request

 

 

Cookies Tab in the network tab will provide you with some cookies you may need to login to major sites  (twitch, etc...)

You may need a Session ID Cookie Or A Auth Cookie

 

Overall

 

There will be more threads coming soon.

Im sorry this thread is short and less indepth but i will make it up to you guys soon.

 

Leave Suggestions On What i Should Do A Tutorial On Next

 

 

 

[/hide]

Share this post


Link to post
Share on other sites

Thanks man!!

Share this post


Link to post
Share on other sites

Thanks for sharing,appreciate it.

Share this post


Link to post
Share on other sites

Nice left a like!

Share this post


Link to post
Share on other sites

thanks for sharing  :hype: :hype: :kek: :kek: :fiesta: :fiesta: :fiesta:

Share this post


Link to post
Share on other sites

:fine: :hype: :hype:

Im back with another thread.

Today learn how to get a auth token from a site.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this