api

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFire

func DeleteFire(c *gin.Context)

@BasePath /api/ @Summary Fires @Description Delete Fire @Produce json @Tags XSSFire @Router /fire/{fire_id} [delete]

func DeleteFireShare

func DeleteFireShare(c *gin.Context)

@BasePath /api/ @Summary Fires sharing @Description Disable fire sharing @Tags XSSFire @Router /fire/{fire_id}/share [delete]

func DeleteHandler

func DeleteHandler(c *gin.Context)

@BasePath /api/ @Summary Handlers @Description Delete Handler @Produce json @Router /handlers/{handler_id} [delete] @Tags Handlers

func DeleteHandlerMembers

func DeleteHandlerMembers(c *gin.Context)

@BasePath /api/ @Summary Delete Handler Member @Description Delete Handler Member @Produce json @Router /handler/{handler_id}/members [delete] @Tags Handlers @Param HandlerMemberDeleteForm body HandlerMemberDeleteForm true "HandleOptions"

func GetFire

func GetFire(c *gin.Context)

@BasePath /api/ @Summary Fire @Description Get XSS Fire information @Produce json @Tags XSSFire @Router /fire/{fire_id} [get]

func GetFireFile

func GetFireFile(c *gin.Context)

@BasePath /api/ @Summary Fire @Tags XSSFire @Description Get XSS Fire File @Router /fire/{fire_id}/file/{file_id} [get]

func GetFires

func GetFires(c *gin.Context)

@BasePath /api/ @Summary Fires @Description Get XSS Fires @Produce json @Tags XSSFire @Router /fires [get]

func GetHandler

func GetHandler(c *gin.Context)

@BasePath /api/ @Summary Handlers @Description Get Handler information @Produce json @Router /handlers/{handler_id} [get] @Tags Handlers

func GetHandlers

func GetHandlers(c *gin.Context)

@BasePath /api/ @Summary Handlers @Description Get Handlers list @Produce json @Router /handlers [get] @Tags Handlers

func GetNotificationParams added in v0.1.5

func GetNotificationParams(c *gin.Context)

@BasePath /api/ @Summary Get notification parameters @Description Get notification parameters @Produce json @Router /profile/notifications [get] @Tags Profile

func GetPayloads

func GetPayloads(c *gin.Context)

@BasePath /api/ @Summary Payloads @Description Get formated payloads @Produce json @Router /payloads [get]

func GetPublicFire

func GetPublicFire(c *gin.Context)

@BasePath /api/ @Summary Public Fire @Description Get XSS Fire information @Produce json @Router /sharing/{fire_id} [get]

func GetPublicFireFile

func GetPublicFireFile(c *gin.Context)

@BasePath /api/ @Summary Public Fire @Description Get XSS Fire File @Router /sharing/{fire_id}/file/{file_id} [get]

func GetUsers

func GetUsers(c *gin.Context)

@BasePath /api/ @Summary Users @Description Get Users list @Produce json @Router /users [get]

func PostFireShare

func PostFireShare(c *gin.Context)

@BasePath /api/ @Summary Fires sharing @Description Enable fire sharing @Produce json @Tags XSSFire @Router /fire/{fire_id}/share [post]

func PostHandler

func PostHandler(c *gin.Context)

@BasePath /api/ @Summary Create Handler @Description Update Handler information @Produce json @Router /handlers [post] @Param HandlerCreateForm body HandlerCreateForm true "HandleOptions" @Tags Handlers

func PostHandlerMembers

func PostHandlerMembers(c *gin.Context)

@BasePath /api/ @Summary Create Handler Member @Description Create Handler Member @Produce json @Router /handler/{handler_id}/members [post] @Tags Handlers @Param HandlerMemberCreateForm body HandlerMemberCreateForm true "HandleOptions"

func PostLogin

func PostLogin(c *gin.Context)

@BasePath /api/ @Summary Login @Description Login @Produce json @Router /login [post] @Param LoginForm body LoginForm true "Credentials" @Tags Authentication

func PostLogout

func PostLogout(c *gin.Context)

@BasePath /api/ @Summary Logout @Description Logout Not working for now @Produce json @Router /logout [post]

func PostNotificationParams added in v0.1.5

func PostNotificationParams(c *gin.Context)

@BasePath /api/ @Summary Set notification parameters @Description Set notification parameters @Produce json @Router /profile/notifications [post] @Param Params body []types.NotifierInformation true "Params" @Tags Profile

func PostSetPassword added in v0.1.4

func PostSetPassword(c *gin.Context)

@BasePath /api/ @Summary Change Password @Description Change Password @Produce json @Router /profile/set_password [post] @Param SetPasswordForm body SetPasswordForm true "Credentials" @Tags Authentication

func PutHandler

func PutHandler(c *gin.Context)

@BasePath /api/ @Summary Handlers @Description Update Handler information @Produce json @Router /handlers/{handler_id} [put] @Param HandlerUpdateForm body HandlerUpdateForm true "HandleOptions" @Tags Handlers

func PutHandlerMembers

func PutHandlerMembers(c *gin.Context)

@BasePath /api/ @Summary Update Handler Member Role @Description Update Handler Member Role @Produce json @Router /handler/{handler_id}/members [put] @Tags Handlers @Param HandlerMemberEditForm body HandlerMemberEditForm true "HandleOptions"

Types

type APIFires

type APIFires struct {
	Ip             string
	Handler        string
	Url            string
	UserAgent      string
	Referer        string
	CorrelationKey string
}

type HandlerCreateForm

type HandlerCreateForm struct {
	Screenshot *bool  `json:"screenshot"  binding:"required"`
	Dom        *bool  `json:"dom"  binding:"required"`
	Domain     string `json:"domain"  binding:"required"`
	Path       string `json:"path"  binding:"required"`
}

type HandlerMemberCreateForm

type HandlerMemberCreateForm struct {
	Role  models.PermisionType `json:"role"  binding:"required"`
	Email string               `json:"email"  binding:"required"`
}

type HandlerMemberDeleteForm

type HandlerMemberDeleteForm struct {
	Id int `json:"user_id"  binding:"required"`
}

type HandlerMemberEditForm

type HandlerMemberEditForm struct {
	Role models.PermisionType `json:"role"  binding:"required"`
	Id   int                  `json:"user_id"  binding:"required"`
}

type HandlerUpdateForm

type HandlerUpdateForm struct {
	Screenshot    *bool    `json:"Screenshot"  binding:"required"`
	Dom           *bool    `json:"Dom"  binding:"required"`
	CollectedPage []string `json:"CollectedPages"`
}

type LoginForm

type LoginForm struct {
	Email    string `json:"email"  binding:"required"`
	Password string `json:"password" binding:"required"`
}

type Payload

type Payload struct {
	Name  string
	Value string
}

type SetPasswordForm added in v0.1.4

type SetPasswordForm struct {
	CurrentPassword string `json:"current_password"  binding:"required"`
	NewPassword     string `json:"new_password" binding:"required"`
	ConfirmPassword string `json:"confirm_password" binding:"required"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL