USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Might I Request A Favor?[RESOLVED, thanks]

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Networking
View previous topic :: View next topic  
Author Message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jan 22, 2024 1:16 am    Post subject: Might I Request A Favor?[RESOLVED, thanks] Reply with quote

I'd like to test a network app i'm working on for school.

It's all written all i need help with is testing.

Point your favorite telnet client (yes i know... tellnet bad, ssh good.... but the assignment specified telnet) at www.darkstaranime.com port 50000 and the server shall greet you.

the game is pretty simple and self explanitory (guess my number).

The keywords recognized by the server are:
cheat - the server shall start/stop cheating. say it again to reverse the effect
debug - enter/exit debug mode (this is if you want to cheat)
quit - leave the game
shutdown - shutdown the server (it will respawn so go ahead and try it)
license - print the license the software is published under.
games - print the number of games that are currently being played

any other input is assumed to be a guess.

oh, and to prevent crashing my server the game will only allow 1000 simultanious connections.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)


Last edited by Lord.DragonFly.of.Dawn on Thu Feb 04, 2024 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
VHockey86
Advanced Member


Joined: 12 Dec 2024
Posts: 988
Location: Rochester

PostPosted: Fri Jan 22, 2024 1:33 am    Post subject: Reply with quote

from putty on a windows client the output looked screwy, I assume its a lack of CR and Windows by default wanting \r\n

Looked fine from a linux client.



_________________
Main Desktops : Kubuntu 10.4. ArchLinux 64-bit. Windows7 64-bit. Windows XP 32-bit.

MacBook: OS X Snow Leopard (10.6)
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jan 22, 2024 1:41 am    Post subject: Reply with quote

that would be correct. the server assumes your client is fine with endl being just \n.... if i have time i'll make it smarter....



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
VHockey86
Advanced Member


Joined: 12 Dec 2024
Posts: 988
Location: Rochester

PostPosted: Fri Jan 22, 2024 4:45 am    Post subject: Reply with quote

yeah I just thought I'd give a heads up incase your instructor might be grading from a windows client.



_________________
Main Desktops : Kubuntu 10.4. ArchLinux 64-bit. Windows7 64-bit. Windows XP 32-bit.

MacBook: OS X Snow Leopard (10.6)
Back to top
View user's profile Send private message
Rootboy
Sr. Member


Joined: 11 Aug 2024
Posts: 1947
Location: Lewisburg, Tennessee

PostPosted: Fri Jan 22, 2024 1:40 pm    Post subject: Reply with quote

This is what happened in cheat mode:

Hello, try to guess the number I'm thinking between 1 and 100
cheat
Cheat mode enabled.
50
CHEATING: higher
75
CHEATING: lower
67
CHEATING: lower
60
CHEATING: lower
57
CHEATING: lower
53
CHEATING: higher
54
CHEATING: lower
54.5
CHEATING: I am sorry. I do not understand what you are saying. please try again.
quit
CHEATING: You decided to give up. Goodbye!
Connection closed by foreign host.


Who's doing the cheating? Me, or the server? Smile



_________________
OpenSuSE 10.3
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jan 22, 2024 10:48 pm    Post subject: Reply with quote

in cheat mode the server cheats. if you want to cheat enter debug mode and the server shall tell you what it is thinking of.

in cheat mode it picks a new number every guess so you always have a 1 in 100 chance of wining.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
lynch
Moderator


Joined: 15 Nov 2024
Posts: 2659
Location: The Diamond State

PostPosted: Sat Jan 23, 2024 10:44 am    Post subject: Reply with quote

Worked for me.
The number is.......



_________________
Mandriva 2024 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2024 -2.6.26.8.tex3
Back to top
View user's profile Send private message
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Thu Feb 04, 2024 1:24 am    Post subject: Reply with quote

ssh ... asking password

Code:
mmmmna@RC410L800M:~$ ssh www.darkstaranime.com:50000
ssh: Could not resolve hostname www.darkstaranime.com:50000: Name or service not known
mmmmna@RC410L800M:~$ ssh www.darkstaranime.com
The authenticity of host 'www.darkstaranime.com (74.65.148.254)' can't be established.
RSA key fingerprint is 9f:29:17:dd:a1:bb:2a:8d:6d:8c:df:5e:11:f0:fb:d2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'www.darkstaranime.com,74.65.148.254' (RSA) to the list of known hosts.
mmmmna@www.darkstaranime.com's password:
Permission denied, please try again.
mmmmna@www.darkstaranime.com's password:
Permission denied, please try again.
mmmmna@www.darkstaranime.com's password:
Permission denied (publickey,password).
mmmmna@RC410L800M:~$ telnet www.darkstaranime.com:50000
telnet: could not resolve www.darkstaranime.com:50000/telnet: Name or service not known
mmmmna@RC410L800M:~$ telnet www.darkstaranime.com
Trying 74.65.148.254...
telnet: Unable to connect to remote host: Connection refused
mmmmna@RC410L800M:~$



_________________
-Kubuntu 10.04 LTS Beta2 on Celeron D desktop
-PCLinuxOS 2024 LXDE on EeePC 900A with Atom n270 (modded with 32G SATA drive and 2G ram).
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Thu Feb 04, 2024 1:42 am    Post subject: Reply with quote

thats because it was a telnet server. if you wanted ssh you should have tried port 22 like normal. but good luck with username/passwd!

don't break my machine please....

ant the tellnet isn't responding cause i rebooted the server so the script stopped working. i can restart it if you'd like but the assignment was due and handed in today so it was a bit of a moot point.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Thu Feb 04, 2024 1:52 am    Post subject: Reply with quote

Ahh man! I come here once a month and I missed my chance.
Maybe next time!


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse