coreproxy

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CopyURLLabel      = "Copy URL"
	CopyBaseURLLabel  = "Copy base URL"
	RepeatLabel       = "Repeat"
	ClearHistoryLabel = "Clear History"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coreproxy

type Coreproxy struct {
	core.Module

	Sess *core.Session

	Address string
	Port    int
	Proxyh  *goproxy.ProxyHttpServer
	Req     int
	Resp    int
	Srv     *http.Server
	OnReq   func(*http.Request, *goproxy.ProxyCtx) (*http.Request, *http.Response)
	OnResp  func(*http.Response, *goproxy.ProxyCtx) *http.Response
	// contains filtered or unexported fields
}

func NewCoreProxy

func NewCoreProxy(s *core.Session) *Coreproxy

Create a new proxy

func (*Coreproxy) ChangeIpPort

func (p *Coreproxy) ChangeIpPort(ip string, port int) error

func (*Coreproxy) Description

func (p *Coreproxy) Description() string

func (*Coreproxy) Name

func (p *Coreproxy) Name() string

func (*Coreproxy) Start

func (p *Coreproxy) Start() error

Start the proxy

func (*Coreproxy) Status

func (p *Coreproxy) Status() bool

func (*Coreproxy) Stop

func (p *Coreproxy) Stop() error

Stop the proxy

type CoreproxyController

type CoreproxyController struct {
	core.ControllerModule
	Module *Coreproxy
	Gui    *CoreproxyGui
	Sess   *core.Session
	// contains filtered or unexported fields
}

func LoadCoreProxyModule

func LoadCoreProxyModule(s *core.Session) *CoreproxyController

func NewCoreproxyController

func NewCoreproxyController(proxy *Coreproxy, proxygui *CoreproxyGui, s *core.Session) *CoreproxyController

func (*CoreproxyController) ExecCommand

func (c *CoreproxyController) ExecCommand(m string, args ...interface{})

func (*CoreproxyController) GetGui

func (c *CoreproxyController) GetGui() core.GuiModule

func (*CoreproxyController) GetModule

func (c *CoreproxyController) GetModule() core.Module

func (*CoreproxyController) Name

func (c *CoreproxyController) Name() string

type CoreproxyGui

type CoreproxyGui struct {
	core.GuiModule

	Sess *core.Session

	ControllerInit        func()
	StartProxy            func(bool)
	StopProxy             func()
	RowClicked            func(int)
	ApplyFilters          func(bool)
	ResetFilters          func(bool)
	CheckReqInterception  func(bool)
	CheckRespInterception func(bool)
	CheckIgnoreHTTPS      func(bool)
	SaveCAClicked         func(bool)
	RightItemClicked      func(string, int)

	RequestTextEdit        *widgets.QPlainTextEdit
	EditedRequestTextEdit  *widgets.QPlainTextEdit
	ResponseTextEdit       *widgets.QPlainTextEdit
	EditedResponseTextEdit *widgets.QPlainTextEdit

	// Filter
	TextSearchLineEdit    *widgets.QLineEdit
	ApplyFiltersButton    *widgets.QPushButton
	ResetFiltersButton    *widgets.QPushButton
	S100CheckBox          *widgets.QCheckBox
	S200CheckBox          *widgets.QCheckBox
	S300CheckBox          *widgets.QCheckBox
	S400CheckBox          *widgets.QCheckBox
	S500CheckBox          *widgets.QCheckBox
	ShowExtensionLineEdit *widgets.QLineEdit
	HideExtensionLineEdit *widgets.QLineEdit
	ShowOnlyCheckBox      *widgets.QCheckBox
	HideOnlyCheckBox      *widgets.QCheckBox

	// settings tab
	ListenerLineEdit      *widgets.QLineEdit
	StartStopButton       *widgets.QPushButton
	ReqInterceptCheckBox  *widgets.QCheckBox
	RespInterceptCheckBox *widgets.QCheckBox
	SaveCAButton          *widgets.QPushButton

	// interceptor
	ForwardButton           *widgets.QPushButton
	DropButton              *widgets.QPushButton
	InterceptorToggleButton *widgets.QPushButton
	InterceptorTextEdit     *widgets.QPlainTextEdit
	Toggle                  func(bool)
	Forward                 func(bool)
	Drop                    func(bool)
	// contains filtered or unexported fields
}

func NewCoreproxyGui

func NewCoreproxyGui(s *core.Session) *CoreproxyGui

func (*CoreproxyGui) FileSaveAs

func (t *CoreproxyGui) FileSaveAs(s string) bool

func (*CoreproxyGui) GetModuleGui

func (g *CoreproxyGui) GetModuleGui() widgets.QWidget_ITF

func (*CoreproxyGui) HideAllTabs

func (g *CoreproxyGui) HideAllTabs()

func (*CoreproxyGui) Name

func (g *CoreproxyGui) Name() string

func (*CoreproxyGui) SetRightClickMenu

func (g *CoreproxyGui) SetRightClickMenu()

func (*CoreproxyGui) SetTableModel

func (g *CoreproxyGui) SetTableModel(m *model.SortFilterModel)

func (*CoreproxyGui) ShowEditedReqTab

func (g *CoreproxyGui) ShowEditedReqTab(edited_req string)

func (*CoreproxyGui) ShowEditedRespTab

func (g *CoreproxyGui) ShowEditedRespTab(edited_resp string)

func (*CoreproxyGui) ShowReqTab

func (g *CoreproxyGui) ShowReqTab(req string)

func (*CoreproxyGui) ShowRespTab

func (g *CoreproxyGui) ShowRespTab(resp string)

type Settings

type Settings struct {
	Ip            string
	Port          int
	ReqIntercept  bool
	RespIntercept bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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