GithubHelp home page GithubHelp logo

jmmcatee / cracklord Goto Github PK

View Code? Open in Web Editor NEW
382.0 382.0 75.0 15.29 MB

Queue and resource system for cracking passwords

License: MIT License

Go 83.64% HTML 4.30% JavaScript 7.91% CSS 2.81% Shell 1.01% Ruby 0.33%

cracklord's People

Contributors

emperorcow avatar gifts avatar jmmcatee avatar mychickenninja avatar noraj avatar ramzeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cracklord's Issues

Use TLS for RPC resource calls

The Queue currently calls resource over a standard TCP connection. This needs to be over TLS and ignore certificate issues for the time being.

Generated form select sorting

It is likely in Go that most of the select fields used for generated forms will be stored internally as Go maps. Maps in Go return their internals randomly, so could we have all selects just sort by name so they are presented to the user in a constant order?

Need to streamline install process

Need to change main page readme to document

  • Differences between server and resourceserver
  • go get should be for the individual item, otherwise it doesn't grab deps
  • Need to copy public and the INI files over is there a way to do this during go install?
  • Need to add instructions on gopath and goroot

Code queue reorder confirmation

Right now we need to send the entire queue in order. You should add some logic to move all done/failed/quit jobs to the bottom.

Add nonce to all API requests

We may or may not want to do this, but I think the API structs should be updated to utilize one for all requests. How hard would this be on the backend?

Null pointer exception

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x639eaf]

goroutine 25 [running]:
net/rpc.(_Client).send(0x0, 0xc2081915e0)
/usr/local/go/src/net/rpc/client.go:72 +0x3af
net/rpc.(_Client).Go(0x0, 0x8c7e30, 0x10, 0x809260, 0xc208196200, 0x72f8a0, 0xc2081ca870, 0xc208084d20, 0xc208196200)
/usr/local/go/src/net/rpc/client.go:309 +0x13e
net/rpc.(_Client).Call(0x0, 0x8c7e30, 0x10, 0x809260, 0xc208196200, 0x72f8a0, 0xc2081ca870, 0x0, 0x0)
/usr/local/go/src/net/rpc/client.go:315 +0xa5
github.com/jmmcatee/cracklord/queue.(_Queue).updateQueue(0xc2080801a0)
/usr/local/cracklord/src/github.com/jmmcatee/cracklord/queue/queue.go:684 +0x385
github.com/jmmcatee/cracklord/queue.func·001()
/usr/local/cracklord/src/github.com/jmmcatee/cracklord/queue/queue.go:573 +0x1e7
created by github.com/jmmcatee/cracklord/queue.(*Queue).keeper
/usr/local/cracklord/src/github.com/jmmcatee/cracklord/queue/queue.go:669 +0x8c

goroutine 1 [IO wait]:
net.(_pollDesc).Wait(0xc2080d7f70, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(_pollDesc).WaitRead(0xc2080d7f70, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(_netFD).accept(0xc2080d7f10, 0x0, 0x7f18c0697d48, 0xc2082089e0)
/usr/local/go/src/net/fd_unix.go:419 +0x40b
net.(_TCPListener).AcceptTCP(0xc20802c050, 0xc2082089c0, 0x0, 0x0)
/usr/local/go/src/net/tcpsock_posix.go:234 +0x4e
net/http.tcpKeepAliveListener.Accept(0xc20802c050, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1976 +0x4c
crypto/tls.(_listener).Accept(0xc208117ee0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/crypto/tls/tls.go:46 +0x6b
net/http.(_Server).Serve(0xc2080849c0, 0x7f18c069b918, 0xc208117ee0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1728 +0x92
net/http.(*Server).ListenAndServeTLS(0xc2080849c0, 0x8aad10, 0x8, 0x8aacf0, 0x8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1879 +0x55b
net/http.ListenAndServeTLS(0xc20800b980, 0xb, 0x8aad10, 0x8, 0x8aacf0, 0x8, 0x7f18c0699a78, 0xc2080564e0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1841 +0xef
main.main()
/usr/local/cracklord/src/github.com/jmmcatee/cracklord/queueserver/queueserver.go:215 +0x21e4

goroutine 33 [syscall, 887 minutes, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 107 [IO wait]:
net.(_pollDesc).Wait(0xc2081ec300, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(_pollDesc).WaitRead(0xc2081ec300, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(_netFD).Read(0xc2081ec2a0, 0xc2080de800, 0x800, 0x800, 0x0, 0x7f18c0697d48, 0xc2082095a0)
/usr/local/go/src/net/fd_unix.go:242 +0x40f
net.(_conn).Read(0xc20802c068, 0xc2080de800, 0x800, 0x800, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:121 +0xdc
crypto/tls.(_block).readFromUntil(0xc2080e90b0, 0x7f18c069bad8, 0xc20802c068, 0x5, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:454 +0xe6
crypto/tls.(_Conn).readRecord(0xc20807c580, 0x17, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:539 +0x2da
crypto/tls.(_Conn).Read(0xc20807c580, 0xc20816d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:904 +0x166
net/http.(_liveSwitchReader).Read(0xc2080dc0e8, 0xc20816d000, 0x1000, 0x1000, 0x8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:214 +0xab
io.(_LimitedReader).Read(0xc2080fa6c0, 0xc20816d000, 0x1000, 0x1000, 0x800, 0x0, 0x0)
/usr/local/go/src/io/io.go:408 +0xce
bufio.(_Reader).fill(0xc2081ba180)
/usr/local/go/src/bufio/bufio.go:97 +0x1ce
bufio.(_Reader).ReadSlice(0xc2081ba180, 0xc2080e910a, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:295 +0x257
bufio.(_Reader).ReadLine(0xc2081ba180, 0x0, 0x0, 0x0, 0xc2080e9100, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:324 +0x62
net/textproto.(_Reader).readLineSlice(0xc208201b60, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/textproto/reader.go:55 +0x9e
net/textproto.(_Reader).ReadLine(0xc208201b60, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/textproto/reader.go:36 +0x4f
net/http.ReadRequest(0xc2081ba180, 0xc2081c0410, 0x0, 0x0)
/usr/local/go/src/net/http/request.go:598 +0xcb
net/http.(_conn).readRequest(0xc2080dc0a0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:586 +0x26f
net/http.(_conn).serve(0xc2080dc0a0)
/usr/local/go/src/net/http/server.go:1162 +0x69e
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e

Returned parameter div improvements

The div that displays returned parameters should list the first few (4 or 5) then have a more information link. This should pop-up a menu that shows all parameters returned by the job (hopefully without sensitive data) and also provide all the OutputTitle and Data fields as well.

Wrap panics in Resource calls

We should wrap all calls to the Tasker interface to avoid panics that bring down the Resource because of a bug in the plugin.

Queue attempts to send jobs to disconnected resources

When a resource is disconnected, the queue attempts to send a job to it and then doesn't try the next successful resource. Here is a log from the keeper:

2015/03/30 10:29:23 ----Queue Keeper is running....
2015/03/30 10:29:23 ----Getting Queue Lock
2015/03/30 10:29:23 ----Updating the the Queue
2015/03/30 10:29:23 ==Res(5b1baa61-9f1c-4f96-8657-0add7b19c7dc): gpu:%!b(bool=true)
2015/03/30 10:29:23 Starting a new job on:5b1baa61-9f1c-4f96-8657-0add7b19c7dc
2015/03/30 10:29:23 connection is shut down
2015/03/30 10:29:23 ==Res(8b732cd3-76ef-4130-abca-e59d66b45fc7): gpu:%!b(bool=true)
2015/03/30 10:29:23 ----Releasing the lock

Tests are broken and not used

Right now the tests are broken and we aren't really using them, we should revisit these to get them back in and be good developers...

Add more details to Job JSON return

Right now we don't have a lot of details, I'm thinking it could be nice to return some things like total guesses, track a history of guesses (yay graphs!) every job check, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.