Jump to content




Dark programs: Base security / Remote login / Keycards / Server & multiple clients


  • You cannot reply to this topic
78 replies to this topic

#21 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 04 December 2012 - 07:19 AM

View PostBeastCoder123, on 04 December 2012 - 05:01 AM, said:

Is it possible to use this just like a login database?

I want to use your program, but i cant really figure out why the client keeps resseting! (Back to the login screen)

I tried for 6 hours to figure it out with a friend of mine and we couldnt. :(/>

Please help

The "client" program is just for base security (for example opening a door), its not written for terminal security (yet) but that is something I am working on.

#22 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 07 January 2013 - 01:03 PM

I have moved my programs to github with a shiney new update feature! I'm working on remote logins and a whole new gui interface for them, Also in the works is remote directory sharing and other crazy things!

#23 nateracecar5

  • Members
  • 94 posts

Posted 07 January 2013 - 04:14 PM

View Postdarkrising, on 22 September 2012 - 03:15 AM, said:

I have moved all my programs to github!

Features / Recent Changes:
  • Moved to github!
  • All programs use a completely new update system (stealth updates)
How this works:
A basic setup consists of a server and client computer
first you add the client computers id to the servers pc whitelist so that they can communicate, you then add a user to the servers user list
Type the user and password into the client computer and it will send to the information to the server for inspection, granting or denying access

For a more advanced setup you need server, client and cardgen computers
Do the same as above but add the cardgen computers id to the servers super pc list
pop a disk into the cardgen computers disk drive and voila its added to the servers id list
you can now use the disk as a security card

Tutorial
Spoiler

Screenshots
Spoiler

One thing to add: more functions to the client. Other than that, enginious programs!

#24 micmou

  • Members
  • 54 posts

Posted 13 January 2013 - 12:27 PM

I love your program but if i may be so bold.
The program currently does not work on Minecraft 1.2.5.
And i was hoping that you could add support for it.
Also if i may suggest a unique card identifier.
Like where a computer needs a specific level. maybe a base and the main entrance is accesible by level 1 but say the armory assuming there is one is only accesible by lvl 10

#25 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 15 January 2013 - 11:55 AM

View Postmicmou, on 13 January 2013 - 12:27 PM, said:

I love your program but if i may be so bold.
The program currently does not work on Minecraft 1.2.5.
And i was hoping that you could add support for it.
Also if i may suggest a unique card identifier.
Like where a computer needs a specific level. maybe a base and the main entrance is accesible by level 1 but say the armory assuming there is one is only accesible by lvl 10

Okay, ill take a look into it if you tell me your version of computercraft :)

As for security levels, it is on my to-do list! :)

@nateracecar5: I am open to suggestions :D

#26 micmou

  • Members
  • 54 posts

Posted 16 January 2013 - 02:16 AM

It is cc 1.41 because i only really play tekkit classic but even after manually downloading them from pastebin they do not work:(
also on your website i signed up and my email provider will not recieve your email for some reason if you think you could help i signed up as
micmou

EDIT: also the downloader doesnt work and it is not something i am doing because other programs work fine

#27 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 16 January 2013 - 03:51 AM

View Postmicmou, on 16 January 2013 - 02:16 AM, said:

It is cc 1.41 because i only really play tekkit classic but even after manually downloading them from pastebin they do not work:(
also on your website i signed up and my email provider will not recieve your email for some reason if you think you could help i signed up as
micmou

EDIT: also the downloader doesnt work and it is not something i am doing because other programs work fine

Okay, I think that version of CC is missing an api function that was added in later on, I'll have to look into a possible fix for that!

As for the downloader, if thats the pastebin one it is out of date and I'm working on a new and improved github one. (also make sure http is enabled in the cc config)

Regarding the website, if you mean my server's forum I can manually go in and activate your account if you wish, a lot of people seem to have the same problem, I think some email hosts block the email for some reason, (also on my to-do list hah!)

Edit: fixed the issue with CC 1.41 (I hope) I don't have it so I can't test it, let me know how it goes :)

Edit 2: I made a downloader, its on gihub :)

#28 micmou

  • Members
  • 54 posts

Posted 16 January 2013 - 08:36 AM

I am at school will test when i get home but hmm if you could add security levels also one more request maybe a strictly keycard client or maybe an option to chose either keycard password or both. I tried messing with it to see if i could add security levels but sadly i have no idea what some of your functions do and based on the way the database stores keycards you would have to add a greater to level with a marker or have a search function for a specific string

Edit: also if you could activate me that would be great

#29 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 16 January 2013 - 09:48 AM

View Postmicmou, on 16 January 2013 - 08:36 AM, said:

I am at school will test when i get home but hmm if you could add security levels also one more request maybe a strictly keycard client or maybe an option to chose either keycard password or both. I tried messing with it to see if i could add security levels but sadly i have no idea what some of your functions do and based on the way the database stores keycards you would have to add a greater to level with a marker or have a search function for a specific string Edit: also if you could activate me that would be great

Basicly the database is just stored arrays in a hidden folder, take a look at my api, it sheds more light on it!

As for my forum I couldnt find anyone by the name of "micmou" however I did find a user called "mimcou", (typo?)

I have manually activated your account and if you want, I could change your username :)

As for security levels, I am working on it, I just have to find the time to do it :D

#30 micmou

  • Members
  • 54 posts

Posted 16 January 2013 - 11:46 AM

Hmm i would still like to see maybe a keycard only client or the option to choose both or one or the other
maybe a quick fix for maybe a option is to have the password come up by pressing a key like hmm "P"
security levels would be awesome i dont think it would be to hard.
All you need to do is have a pin set by user on card for like a granted access but that really isnt security levels is it hmm
I guess that idea wouldnt work as it would have to be a reasonable range of numbers like 1-10
so hmm

#31 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 17 January 2013 - 01:28 AM

View Postmicmou, on 16 January 2013 - 11:46 AM, said:

Hmm i would still like to see maybe a keycard only client or the option to choose both or one or the other
maybe a quick fix for maybe a option is to have the password come up by pressing a key like hmm "P"
security levels would be awesome i dont think it would be to hard.
All you need to do is have a pin set by user on card for like a granted access but that really isnt security levels is it hmm
I guess that idea wouldnt work as it would have to be a reasonable range of numbers like 1-10
so hmm

Or I could make a new table for security levels and have it sent with the request from the client, the client "type" sounds like a cool idea, I'll implement that when I get a chance. :)

#32 micmou

  • Members
  • 54 posts

Posted 18 January 2013 - 05:49 AM

Hmm well i will patiently wait when i am un grounded i will make a mod pack for your server so all people have to do is load it as a custom in the tekkit launchet

#33 twitch204

  • Members
  • 11 posts

Posted 20 January 2013 - 10:06 AM

Hi,
I have tryed to use your installer by adding it to one of my computers. I keep getting an error about not an http url. Sorry, im new to CC and trying to learn it :)

Code I am useing

--Title: Dark Card Generator
Version = 3.1
--Author: Darkrising (minecraft name djhannz)
--Platform: ComputerCraft Lua Virtual Machine
AutoUpdate = true
if fs.exists("dark") == false then -- load darkAPI
print("Missing DarkAPI")
sleep(2)
print("Attempting to download...")
getGit = http.get("https://github.com/darkrising/darkprograms/raw/darkprograms/darksecurity/dark")
getGit = getGit.readAll()
file = fs.open("dark", "w")
file.write(getGit)
file.close()
os.reboot()
else
os.loadAPI("dark")
end
function Header(text)
dark.printL("-", 1)
dark.printC(text, 2)
dark.printL("-", 3, 4)
end
if fs.exists("DarkDG_conf") == false then
term.clear()
term.setCursorPos(1,1)
Header("Dark Card Generator Setup")
write("Please type the server / relay id: ")
server = io.read()

local file = io.open("DarkDG_conf","w")
file:write("server = "..server)
file:close()

print("\nsetup complete! Restarting...")
sleep(1.5)
os.reboot()
dofile("DarkDG_conf")
else
dofile("DarkDG_conf")
end
term.clear() term.setCursorPos(1,1)
S = dark.findPeripheral("modem")
if S == false then
print("Please attach Modem")
return exit
else
rednet.open(S)
end
if AutoUpdate == true then
if ((dark.gitUpdate("cardgen", shell.getRunningProgram(), Version) == true) or (dark.gitUpdate("dark", "dark",

dark.DARKversion) == true)) then
os.reboot()
end
end
print("running cardgen.")
while true do
event, DiskSide = os.pullEvent("disk")
ID = tostring(disk.getDiskID(DiskSide))
rednet.send(server, "QUERY#"..ID)
S, M = rednet.receive(2)

if M == "#DENIED#" then
rednet.send(server, "ADDID#"..ID)
print("ID Added")
elseif M == "#GRANTED#" then
rednet.send(server, "DELETEID#"..ID)
print("ID Deleted")
else
print("No response from server.")
end
disk.eject(DiskSide)
end

#34 twitch204

  • Members
  • 11 posts

Posted 20 January 2013 - 10:09 AM

Sorry full error code is

bios:333: Not an Http URL

#35 micmou

  • Members
  • 54 posts

Posted 20 January 2013 - 05:47 PM

Hmm hope you get time soon dark i am patiently waiting. i believe he has a downloader and what version of CC do you have i have been running over his code might not be able to help fully

#36 twitch204

  • Members
  • 11 posts

Posted 21 January 2013 - 03:25 PM

Hi,
I am using CC 1.3 on Tekkit Classic. I found the downloader in the dark folders on githhub. Its using minecraft 1.2.5

#37 micmou

  • Members
  • 54 posts

Posted 22 January 2013 - 08:03 AM

Hmm have you tried his updated version for the fix Hmm upadte tekkit it should be 1.41 are you on tekkit 3.1.3

#38 twitch204

  • Members
  • 11 posts

Posted 22 January 2013 - 08:58 AM

The launcher says 1.1.1.0

#39 Madx

  • Members
  • 1 posts

Posted 24 January 2013 - 02:38 AM

Hi Dark

Is It possible that you can comment in your code it would help alot in understanding the code, I have some questions where do you get the Gitget function from cant find it in the dark API and cant find getGit.readAll() either is this a build in function of the http api for cc ? or is it your doing ?
your programs are awsome and I would like to learn more about programming things like this and your code is a great help just needing some comments in the code :P

#40 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 25 January 2013 - 08:46 AM

View Posttwitch204, on 20 January 2013 - 10:09 AM, said:

Sorry full error code is

bios:333: Not an Http URL
Reason for that is the url is https which wasnt added into cc until version 1.4 (source)
You change the "autoupdate" to false and manually download the api (called dark) along with the program of choice, that would be a temp fix for now.


View PostMadx, on 24 January 2013 - 02:38 AM, said:

Hi Dark

Is It possible that you can comment in your code it would help alot in understanding the code, I have some questions where do you get the Gitget function from cant find it in the dark API and cant find getGit.readAll() either is this a build in function of the http api for cc ? or is it your doing ?
your programs are awsome and I would like to learn more about programming things like this and your code is a great help just needing some comments in the code :P

Yes, I will think I will add comments to the code.

getGit is the variable I assigned for the fs.open() function (lookup the fs api for more on that)

I like to help people to learn, so if you do have anymore questions about my code don't hesitate to ask. :)

Edit: sorry I didn't reply sooner, I've had a busy week with my new job
Also my English is terrible as I write this! haha (I blame lack of sleep)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users