818 posts
Location
Wherever you want me to be
Posted 22 February 2016 - 11:15 AM
FServ 1.1.2
A simple file server with FTP client - 'Cause I can.
What is FServ?FServ is a simple file server with many commands - and a shell.FServ stores it's files in a "server" folder, which is manipulated with commands.
FeaturesDedicated Folder
Real time logging
Command password encryption with configurable permissions
File upload/download
10 shell commands
Simple Rednet commands
Commands
<needed> [optional] {Depends on perms}
list [dir] {user} {pass} - Lists all files on server
upload <file> {user} {pass} - Upload a file to the server
download <file> {user} {pass} - Download file from server
delete <file> {user} {pass} - Delete file on the server
mkdir <dir/name> {user} {pass} - Make a folder in the server
copy <file> <new name> {user} {pass} - Copy file on server with new name
ping {user} {pass} - Pings server
stop {user} {pass} - Stops server
rename <file> <new name> {user} {pass} - Rename file from with one name to another
move <file> <dir> {user} {pass} - Move file from one spot to anotherDefault permissions
* = needs user & pass
list
* upload
* download
* delete
* mkdir
* copy
ping
* stop
* rename
* move
To change permission, edit the server file. There will be a table around the top with permissions
(true = needs perms; false = doesn't need perms) Todo/WIP features &amp; commandsBetter security &amp; protection - any ideas?
Simpler commands
GUI to control server
Command line in main server
Cleaner help command
Edit file on server
Use modem api
Make "DNS lookup" program &amp; api
Display computer id in console startup
Detect if file exists or not to avoid crash
Fix list command to show file tree
Make folders downloadable
Known BugsUpload sends no codeUHH, it doesn't work. AT ALL.
AT ALL!!!
(not so sure about that one.)
DownloadsMain Serverpastebin get yhfedyiq fservShellpastebin get tuyk9vqf ftps
Screenshots (Slightly outdated)Suggestions? Feedback? Bug reports? They all help me!
Edited on 07 March 2016 - 10:00 AM
2679 posts
Location
You will never find me, muhahahahahaha
Posted 22 February 2016 - 02:52 PM
What network do you use?
Like rednet, or something more sophisticated and expandable like LyqydNet (and soon Delta)?
Edited on 22 February 2016 - 02:57 PM
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 22 February 2016 - 06:03 PM
Wait has done it again! another awesome program from the mind of Waitdev_! Amazing job!
1847 posts
Location
/home/dannysmc95
Posted 22 February 2016 - 06:36 PM
Great idea, I do like this a lot! Maybe you should make an API for using a file server? For example if you use rednet hosts and that you can use the program to set a name for itself, then make an API for other computers to be able to search for file servers on the network?:D/>
818 posts
Location
Wherever you want me to be
Posted 23 February 2016 - 06:29 AM
Great idea, I do like this a lot! Maybe you should make an API for using a file server? For example if you use rednet hosts and that you can use the program to set a name for itself, then make an API for other computers to be able to search for file servers on the network? :D/>
Nice idea! Funny thing, a bit back I started to make a program which translates computers ids to names, I'll start working on that again :D/>
Wait has done it again! another awesome program from the mind of Waitdev_! Amazing job!
Thanks! :D/>
What network do you use?
Like rednet, or something more sophisticated and expandable like LyqydNet (and soon Delta)?
Rednet, but I'm planning to use something different like the modem API. Though, that might take a bit.
818 posts
Location
Wherever you want me to be
Posted 23 February 2016 - 08:21 AM
Version 1.1 is now available!
Downloads have been updated.
New features in 1.1
Custom permissions configurable in main server code
Move & Rename command added
Now outputs to file as well as console
Bug fixes
List command displays "Failed"
Version 1.1.2 - The "Why didn't I test this" update is now available!
Downloads have been updated.
Bug fixes
Wrong variable in download command (add m = args at top to fix)
Downloads save as said server password
Upload command uses wrong table pos
Copy command won't direct to server
Download command on ftps has no timeout for first receive
Delete has no success/fail check
Edited on 26 February 2016 - 08:23 PM
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 23 February 2016 - 01:06 PM
Thx, going to surely check it out!
2427 posts
Location
UK
Posted 23 February 2016 - 02:32 PM
Version 1.1.2 - The "Why didn't I test this" update is now available!
This made me laugh, mind if I use this update name in my own projects?
818 posts
Location
Wherever you want me to be
Posted 23 February 2016 - 08:52 PM
Thx, going to surely check it out!
Nice :)/>
Version 1.1.2 - The "Why didn't I test this" update is now available!
This made me laugh, mind if I use this update name in my own projects?
Use it however you want ;)/>
95 posts
Location
A CPU some where in Bolton, UK
Posted 25 February 2016 - 01:04 PM
HAHAH praticly everything im working on my server system atm hahaha, nice job :P/>
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 26 February 2016 - 06:38 PM
I could make it so my virus spreads through FServ as well, in the sense that if it detects a FServ install it'll copy itself as "goldrunner" in the server folder.
Or maybe make it so the virus sends itself to a FServ server through the use of a backdoor, and the "upload" command. If there's no FServ install it'll automatically download FServ.
(Kurrently mining Krist atm, with TurboKrist.)
^^^ see what i did there?
2679 posts
Location
You will never find me, muhahahahahaha
Posted 26 February 2016 - 07:16 PM
I looked through the code and there is an awfully lot of unnecessary ifs. For example:
elseif m[2]=="delete" then
printt("Delete requested from computer id "..s)
if m[4]==user and m[5]==pass or not perms.delete then
printt("[Deletion] Login completed by computer id "..s)
fs.delete("/server/"..m[3])
printt("Deleted "..m[3].." to computer id "..s.."'s request")
rednet.send(s,"true")
else
printt("Cancelled delete request from computer id "..s)
sleep(.1)
rednet.send(s,"Invalid user or pass")
end
If you make a table like this:
action = {
delete = function(pass, user, path)
if pass == password and user == username or perms.delete = false then
fs.delete(path)
end
end,
-- other actions in a similar fashion
end
if action[m[2]] then
action[m[2]](...) -- ... are the arguments that come in a standard order
else
print("oopsey doopsey")
end
It saves you the expansion of the if branching when you add other functions.
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 28 February 2016 - 04:22 PM
I'm confused.
I start fserv with the fserv command, it just chucks an error at me and throws me back to shell. The error is "multiple points".
Hey Wait, I fixed the bug that made the program not start.
Here's a pastebin:
http://pastebin.com/gwiRDNTMWell, guess what. I didn't fix the bug.
Well guess what. I fixed it again.
Here's an updated PB:
http://pastebin.com/ZG2QZ0Xg
818 posts
Location
Wherever you want me to be
Posted 01 March 2016 - 11:24 AM
I'm confused.
I start fserv with the fserv command, it just chucks an error at me and throws me back to shell. The error is "multiple points".
Hey Wait, I fixed the bug that made the program not start.
Here's a pastebin:
http://pastebin.com/gwiRDNTMWell, guess what. I didn't fix the bug.
Well guess what. I fixed it again.
Here's an updated PB:
http://pastebin.com/ZG2QZ0Xg
What did you do to fix it? I'm currently working on rewriting the commands, but I may need to know
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 01 March 2016 - 12:47 PM
There was a bug in the printt function, that made the program not run. I ripped a bit of code out made a variable nil, and tadaa! It ran.
I replaced _HOST with "1.1.2".
Edited on 01 March 2016 - 11:48 AM
818 posts
Location
Wherever you want me to be
Posted 05 March 2016 - 11:49 AM
Version 1.2 now available!
Downloads have been updated.
New features in 1.2
Simplified code
Logs computer id in console
Added param to list which shows files in certain dir
Bug fixes
Upload won't send code
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 05 March 2016 - 06:22 PM
UHH, it doesn't work. AT ALL.
AT ALL!!!
231 posts
Posted 05 March 2016 - 10:35 PM
I setup a server.
Setup a client.
Try to upload something to the server…
Failed.
Does not work.
818 posts
Location
Wherever you want me to be
Posted 05 March 2016 - 10:47 PM
I setup a server.
Setup a client.
Try to upload something to the server…
Failed.
Does not work.
Check the server, does it say "Upload failed: Invalid user or pass"? if so, the default username is local and the pass is admin, so try this:
ftps upload [file] local admin
which
should work. otherwise, what does the server say?
UHH, it doesn't work. AT ALL.
AT ALL!!!
what doesn't work about it? It works fine for me..
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 06 March 2016 - 08:38 AM
Everything. Ftps doesn't even say failed, it outright crashes!
818 posts
Location
Wherever you want me to be
Posted 07 March 2016 - 10:52 AM
Everything. Ftps doesn't even say failed, it outright crashes!
you guys gotta send me some screenshots,
it works on my machine!maybe it's got the wrong id? change the id var in ftps to the fserv computer id. otherwise, it might be the username and password. The default user & pass are local & admin.
If it's the syntax you're doing, I'll add the commands in the post with the correct syntax.
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 08 March 2016 - 05:21 PM
The id var is correct, and so are the u-name and password.
818 posts
Location
Wherever you want me to be
Posted 09 March 2016 - 09:16 AM
The id var is correct, and so are the u-name and password.
come to think of it: when you start the program, are you typing in the side of the modem?
also, please send me some screenshots of the server and the client? also the setup for the servers you're using?
Edit: Or maybe, either the server or client is outdated.
Edited on 09 March 2016 - 08:30 AM
339 posts
Location
Computer, Base, SwitchCraft, Cube-earth, Blockiverse, Computer
Posted 09 March 2016 - 12:01 PM
I type in the correct side.
231 posts
Posted 12 March 2016 - 08:00 PM
Still doesn't work
Just says "Failed"
Even tried a wire connection still "Failed"
83 posts
Location
Being the stereotypical kid in forums.
Posted 13 March 2016 - 12:51 PM
Works wonderfully!
Thanks a lot!
374 posts
Posted 13 March 2016 - 04:54 PM
Great idea, I do like this a lot! Maybe you should make an API for using a file server? For example if you use rednet hosts and that you can use the program to set a name for itself, then make an API for other computers to be able to search for file servers on the network? :D/>
Someone could build a file server using my API i released recently. It allows for wifi esque networks.