Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Getting user agent and delivering separate executable based on OS

Name: Anonymous 2018-10-28 18:53

Let's say I want to send someone a link, and depending on their operating system, they will be prompted to download a different executable (one for macOS, one for Linux, one for Windows). Any ideas for how to get the user agent and then choose which file to deliver based on that info?

Name: Anonymous 2018-10-28 18:55

browsers send an HTTP header called User-Agent

Name: Anonymous 2018-10-28 19:31

How the fuck is this more difficult than googling and using a prepared stack over flow answer in FIVE minutes
Fuqin angered

Name: Anonymous 2018-10-28 19:35

>>3
kids

Name: Anonymous 2018-10-28 20:06

xxd -rp | nc -l 80
And wait until a poor fool tries to connect - once this happens you will see their user againt and, then you will be able to manually type the executable that you want to serve in hexadecimal.

Name: Anonymous 2018-10-28 20:44

>>5

Clever, thanks.

Name: Anonymous 2018-10-29 7:10

extract useragent from http header and then use a fucking switch statement, are you too retarded to figure out something that simple?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List