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

Java socket bridge

Name: Anonymous 2012-01-16 0:53

So I'm trying to create a socket bridge in Java to allow me to use actual sockets in Javascript. It works like this:
I include the applet where I want to use sockets, get a reference to it with Javascript, and then I can call applet code by using ref.code.

The applet must be signed and given permission so it can make connections to any domain. Only the main thread has these permissions. You also can't call the socket functions directly from Javascript.

My question is if I start a thread from the main thread will it have the same permissions as the main thread? Is it possible to call code from a thread and have that code run in the thread?

Name: Anonymous 2012-01-21 4:40

>>12
I have to admit this does open doors to the wrong people. Anything that can be done with networking could take place once you allowed the applet permission: Your computer could be used to host a malicious website, proxy server, transfer funds from banks, DoS services, connect to places behind your firewall like you said, port scanning and exploitation -- you could write a web-based worm that spread by just going to a website.

Interesting for software development though. Like I said before, this would allow web developers to create a lot of cool stuff quite easily if it's done right.

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