mirror of https://github.com/gophish/gophish
Update bcrypt dependency and code moved to gophish group
parent
19c2027419
commit
3a0fa4f93f
|
@ -1,4 +1,4 @@
|
||||||
![gophish logo](https://raw.github.com/jordan-wright/gophish/master/static/images/gophish_purple.png)
|
![gophish logo](https://raw.github.com/gophish/gophish/master/static/images/gophish_purple.png)
|
||||||
|
|
||||||
gophish
|
gophish
|
||||||
=======
|
=======
|
||||||
|
@ -34,7 +34,7 @@ Documentation is a work in progress. Existing documentation can be found on our
|
||||||
|
|
||||||
###Issues
|
###Issues
|
||||||
|
|
||||||
Find a bug? Want more features? Find something missing in the documentation? Let us know! Please don't hesitate to [file an issue](https://github.com/jordan-wright/gophish/issues/new) and we'll get right on it.
|
Find a bug? Want more features? Find something missing in the documentation? Let us know! Please don't hesitate to [file an issue](https://github.com/gophish/gophish/issues/new) and we'll get right on it.
|
||||||
|
|
||||||
###License
|
###License
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
|
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
ctx "github.com/gorilla/context"
|
ctx "github.com/gorilla/context"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
//init registers the necessary models to be saved in the session later
|
//init registers the necessary models to be saved in the session later
|
||||||
|
|
|
@ -14,10 +14,10 @@ import (
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
"github.com/jordan-wright/email"
|
"github.com/jordan-wright/email"
|
||||||
"github.com/jordan-wright/gophish/auth"
|
"github.com/gophish/gophish/auth"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
"github.com/jordan-wright/gophish/util"
|
"github.com/gophish/gophish/util"
|
||||||
"github.com/jordan-wright/gophish/worker"
|
"github.com/gophish/gophish/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Worker is the worker that processes phishing events and updates campaigns.
|
// Worker is the worker that processes phishing events and updates campaigns.
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gorilla/handlers"
|
"github.com/gorilla/handlers"
|
||||||
"github.com/jordan-wright/gophish/config"
|
"github.com/gophish/gophish/config"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
ctx "github.com/gorilla/context"
|
ctx "github.com/gorilla/context"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"github.com/jordan-wright/gophish/auth"
|
"github.com/gophish/gophish/auth"
|
||||||
mid "github.com/jordan-wright/gophish/middleware"
|
mid "github.com/gophish/gophish/middleware"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
"github.com/justinas/nosurf"
|
"github.com/justinas/nosurf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/gorilla/handlers"
|
"github.com/gorilla/handlers"
|
||||||
"github.com/jordan-wright/gophish/config"
|
"github.com/gophish/gophish/config"
|
||||||
"github.com/jordan-wright/gophish/controllers"
|
"github.com/gophish/gophish/controllers"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Logger = log.New(os.Stdout, " ", log.Ldate|log.Ltime|log.Lshortfile)
|
var Logger = log.New(os.Stdout, " ", log.Ldate|log.Ltime|log.Lshortfile)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
ctx "github.com/gorilla/context"
|
ctx "github.com/gorilla/context"
|
||||||
"github.com/jordan-wright/gophish/auth"
|
"github.com/gophish/gophish/auth"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetContext wraps each request in a function which fills in the context for a given request.
|
// GetContext wraps each request in a function which fills in the context for a given request.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
"github.com/jordan-wright/gophish/config"
|
"github.com/gophish/gophish/config"
|
||||||
_ "github.com/mattn/go-sqlite3" // Blank import needed to import sqlite3
|
_ "github.com/mattn/go-sqlite3" // Blank import needed to import sqlite3
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package models
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jordan-wright/gophish/config"
|
"github.com/gophish/gophish/config"
|
||||||
"gopkg.in/check.v1"
|
"gopkg.in/check.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ HOST: http://localhost:3333/api/
|
||||||
# Gophish API
|
# Gophish API
|
||||||
Gophish was built from the ground-up with a JSON API that makes it easy for developers and sysadmins to automate simulated phishing campaigns.
|
Gophish was built from the ground-up with a JSON API that makes it easy for developers and sysadmins to automate simulated phishing campaigns.
|
||||||
|
|
||||||
These docs describe how to use the [gophish](https://github.com/jordan-wright/gophish) API.
|
These docs describe how to use the [gophish](https://github.com/gophish/gophish) API.
|
||||||
|
|
||||||
::: note
|
::: note
|
||||||
## Authorization
|
## Authorization
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"net/mail"
|
"net/mail"
|
||||||
|
|
||||||
"github.com/jordan-wright/email"
|
"github.com/jordan-wright/email"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParseMail takes in an HTTP Request and returns an Email object
|
// ParseMail takes in an HTTP Request and returns an Email object
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/jordan-wright/email"
|
"github.com/jordan-wright/email"
|
||||||
"github.com/jordan-wright/gophish/models"
|
"github.com/gophish/gophish/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Logger is the logger for the worker
|
// Logger is the logger for the worker
|
||||||
|
|
Loading…
Reference in New Issue