MCPcopy Create free account

hub / github.com/Shmakov/Honeypot / functions

Functions172 in github.com/Shmakov/Honeypot

↓ 1 callersMethodupdateCredentialsTable
(credentials)
static/stats.js:320
↓ 1 callersMethodupdateMapMarkers
(locations)
static/stats.js:60
↓ 1 callersFunctionupdateMarkerIcon
(markerData)
static/app.js:471
↓ 1 callersMethodupdateOverview
(stats, countries, totalBytes)
static/stats.js:173
↓ 1 callersMethodupdatePathsTable
(paths)
static/stats.js:344
↓ 1 callersMethodupdateServicesChart
(services)
static/stats.js:191
↓ 1 callersMethodupdateTopIpsBandwidthTable
(ips)
static/stats.js:404
↓ 1 callersMethodupdateTopIpsRequestsTable
(ips)
static/stats.js:381
↓ 1 callersMethodvalidate
Validate configuration values
src/config.rs:87
↓ 1 callersFunctionwarm_cache
Warm the cache for the default time range (called on startup)
src/web/routes.rs:205
↓ 1 callersMethodwith_user_agent
(mut self, user_agent: String)
src/db/mod.rs:76
↓ 1 callersFunctionwrite_buffer_task
Background task that collects events and writes them in batches
src/db/write_buffer.rs:26
FunctionaddAttackDot
(lat, lon, ip, service)
static/app.js:498
Functionapi_countries
API: Get country statistics (cached for 5 minutes)
src/web/routes.rs:160
Functionapi_locations
API: Get location data for map (cached for 5 minutes)
src/web/routes.rs:169
Functionapi_recent
API: Get recent data for dashboard (credentials/commands cached 60s, events fresh)
src/web/routes.rs:140
Functionapi_stats
API: Get statistics (cached for 5 minutes)
src/web/routes.rs:123
Functionapi_top_ips_bandwidth
API: Get top IPs by bandwidth (cached for 5 minutes)
src/web/routes.rs:187
Functionapi_top_ips_requests
API: Get top IPs by request count (cached for 5 minutes)
src/web/routes.rs:178
Functionapi_total_bytes
API: Get total traffic bytes (cached for 5 minutes)
src/web/routes.rs:196
Methodauth_none
Accept "none" authentication
src/handlers/ssh.rs:255
Methodauth_password
Accept password authentication - capture credentials
src/handlers/ssh.rs:237
Methodauth_publickey
Accept public key authentication - log the key fingerprint
src/handlers/ssh.rs:270
Methodauth_publickey_offered
Accept public key offer (pre-signature check)
src/handlers/ssh.rs:288
Methodcall
(&mut self, request: Request<Body>)
src/web/middleware.rs:103
Functioncatch_all
Handler for all unknown paths - echo request, redirect to home Note: Logging is handled by the middleware layer
src/web/mod.rs:130
Methodchannel_close
Handle channel close
src/handlers/ssh.rs:488
Methodchannel_eof
Handle channel EOF
src/handlers/ssh.rs:500
Methodchannel_open_session
Accept session channel open
src/handlers/ssh.rs:299
Methodconstructor
()
static/stats.js:14
Methodconstructor
()
static/app.js:7
FunctioncreateAttackIcon
* Create an attack dot icon for the dashboard map * @param {string} service - Service name for styling * @returns {L.DivIcon} - Leaflet div icon
static/map.js:92
FunctioncreateLocationIcon
* Create a location marker icon for the stats map * @param {number} count - Request count for this location * @param {number} maxCount - Maximum cou
static/map.js:107
Methoddefault
()
src/handlers/ssh.rs:65
Functiondefault_cache_size_mb
()
src/config.rs:40
Functiondefault_hours
()
src/web/routes.rs:50
Functiondefault_max_ports
()
src/config.rs:44
Functionevents_handler
( State(state): State<Arc<AppState>>, )
src/web/sse.rs:14
Methodexec_request
Handle exec request - single command execution
src/handlers/ssh.rs:362
Functionflush_batch
Flush buffered events to database in a single transaction
src/db/write_buffer.rs:70
Methodgenerate_fake_output
Generate fake output for a command (static to avoid borrow checker issues)
src/handlers/ssh.rs:163
Methodget_filtered_count
(&self, since_ts: i64)
src/db/mod.rs:458
Methodget_service_stats_raw
(&self, since_ts: i64)
src/db/mod.rs:466
Methodget_top_credentials_raw
(&self, since_ts: i64, limit: i32)
src/db/mod.rs:482
Methodget_top_paths_raw
(&self, since_ts: i64, limit: i32)
src/db/mod.rs:505
Methodhandle_session_error
(&mut self, error: <Self::Handler as Handler>::Error)
src/handlers/ssh.rs:52
Functionindex
Serve the main dashboard page
src/web/routes.rs:30
FunctioninitAttackMap
()
static/app.js:414
FunctioninitMap
* Create and initialize a Leaflet map * @param {string} elementId - ID of the map container element * @param {object} options - Optional map options
static/map.js:31
Methodinsert_event
(&self, event: &AttackEvent)
src/db/mod.rs:170
Methodinto_response
(self)
src/web/routes.rs:24
Methodload
()
src/config.rs:70
Functionmain
()
src/main.rs:22
Functionmerge_credential_stats
(mut rollup: Vec<CredentialStat>, live: Vec<CredentialStat>)
src/db/mod.rs:965
Functionmerge_path_stats
(mut rollup: Vec<PathStat>, live: Vec<PathStat>)
src/db/mod.rs:978
Functionmerge_service_stats
(mut rollup: Vec<ServiceStat>, live: Vec<ServiceStat>)
src/db/mod.rs:948
Methodnew
(sender: broadcast::Sender<Arc<AttackEvent>>)
src/events.rs:13
Methodnew
Create a new GeoIP instance, loading the database if available
src/geoip.rs:24
Methodnew
(state: Arc<AppState>)
src/web/middleware.rs:67
Methodnew
(ip: String, service: String, port: u16, request: String)
src/db/mod.rs:37
Methodnew_client
(&mut self, addr: Option<SocketAddr>)
src/handlers/ssh.rs:37
Methodpoll_ready
(&mut self, cx: &mut Context<'_>)
src/web/middleware.rs:99
Methodpty_request
Accept PTY request
src/handlers/ssh.rs:317
Functionrobots_txt
Serve robots.txt
src/web/routes.rs:40
Methodshell_request
Handle shell request - send welcome and prompt
src/handlers/ssh.rs:334
Functionstart
( port: u16, config: Arc<Config>, event_bus: Arc<EventBus>, write_tx: WriteSender, geoip:
src/handlers/telnet.rs:23
Functionstart
( port: u16, service: &str, config: Arc<Config>, event_bus: Arc<EventBus>, write_tx: Write
src/handlers/tcp.rs:34
Functionstart
Start the ICMP handler to capture ping requests
src/handlers/icmp.rs:52
Functionstart
Start the SSH honeypot server
src/handlers/ssh.rs:543
Functionstatic_files
Handler for static files Security: Validates path to prevent directory traversal attacks
src/web/mod.rs:48
Functionstats_page
Serve the statistics page
src/web/routes.rs:35
FunctionupdateMapTileLayer
* Update map tiles to match theme * @param {L.Map} map - Leaflet map instance * @param {L.TileLayer} currentTileLayer - Current tile layer * @param
static/map.js:75
← previous101–172 of 172, ranked by callers