Documentation ¶
Index ¶
- Variables
- func GetDomainAndMainPageByUrl(s string) (string, string)
- func ReadConfigurationFromFile(fileName string) (err error)
- func ReadGlobalWordlistFromRemote() error
- func ReadWordListFromFile(fileName string) (err error)
- func ReadWordListStorageFromFile(fileName string) (err error)
- func StoreWordlistAtRemote(wl WordList) error
- func TabToSpace(input string) string
- func UpdateSession(s Session)
- func UpdateWordlist(wl WordList)
- func Worker(i int, jobChannel <-chan Job)
- type Config
- type Job
- type ResponseStatus
- type Session
- type SorterWordByOccurance
- type Test
- type Word
- type WordList
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalWordListStorage []WordList
View Source
var JobChannel chan Job
Functions ¶
func ReadConfigurationFromFile ¶
read configuration from file
func ReadGlobalWordlistFromRemote ¶
func ReadGlobalWordlistFromRemote() error
func ReadWordListFromFile ¶
read wordList from file
func ReadWordListStorageFromFile ¶
read wordListStorage from file
func StoreWordlistAtRemote ¶
func TabToSpace ¶
every tab is converted into a space from: https://www.socketloop.com/tutorials/golang-convert-spaces-to-tabs-and-back-to-spaces-example
func UpdateSession ¶
func UpdateSession(s Session)
store session at global
this is subject to concurency
func UpdateWordlist ¶
func UpdateWordlist(wl WordList)
store wordlist at global
this is subject to concurency
Types ¶
type Config ¶
type Config struct { WordListUrl string `json:"wordlisturl"` WordListStorageUrl string `json:"wordliststorageurl"` }
var GlobalConfig Config
type ResponseStatus ¶
type Session ¶
type Session struct { SessionID int `json:"sid"` Count int `json:"count"` RequestExecution bool `json:"requestexecution"` PageToScan string `json:"pagetoscan"` DomainsAllowed string `json:"domainsallowed"` NumberLinksFound int `json:"numberlinksfound"` NumberLinksVisited int `json:"numberlinksvisited"` ExecutionStarted bool `json:"executionstarted"` ExecutionFinished bool `json:"executionfinished"` WordsScanned int `json:"wordsscanned"` PdfsScanned int `json:"pdfsscanned"` }
type SorterWordByOccurance ¶
type SorterWordByOccurance []Word
func (SorterWordByOccurance) Len ¶
func (a SorterWordByOccurance) Len() int
func (SorterWordByOccurance) Less ¶
func (a SorterWordByOccurance) Less(i, j int) bool
func (SorterWordByOccurance) Swap ¶
func (a SorterWordByOccurance) Swap(i, j int)
type Word ¶
type Word struct { Id int `json:"id"` Name string `json:"name"` Occurance int `json:"occurance"` New bool `json:"new"` Tests []Test `json:"tests"` }
type WordList ¶
type WordList struct { Session Session `json:"session"` Words []Word `json:"words"` Tests []Test `json:"tests"` }
var GlobalWordList WordList
func GetWordListForSession ¶
func NewSession ¶
new session returns existing or new session
func (*WordList) FindWordsFromText ¶
Click to show internal directories.
Click to hide internal directories.