Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shmakov/Honeypot
/ functions
Functions
172 in github.com/Shmakov/Honeypot
⨍
Functions
172
◇
Types & classes
33
↓ 1 callers
Method
updateCredentialsTable
(credentials)
static/stats.js:320
↓ 1 callers
Method
updateMapMarkers
(locations)
static/stats.js:60
↓ 1 callers
Function
updateMarkerIcon
(markerData)
static/app.js:471
↓ 1 callers
Method
updateOverview
(stats, countries, totalBytes)
static/stats.js:173
↓ 1 callers
Method
updatePathsTable
(paths)
static/stats.js:344
↓ 1 callers
Method
updateServicesChart
(services)
static/stats.js:191
↓ 1 callers
Method
updateTopIpsBandwidthTable
(ips)
static/stats.js:404
↓ 1 callers
Method
updateTopIpsRequestsTable
(ips)
static/stats.js:381
↓ 1 callers
Method
validate
Validate configuration values
src/config.rs:87
↓ 1 callers
Function
warm_cache
Warm the cache for the default time range (called on startup)
src/web/routes.rs:205
↓ 1 callers
Method
with_user_agent
(mut self, user_agent: String)
src/db/mod.rs:76
↓ 1 callers
Function
write_buffer_task
Background task that collects events and writes them in batches
src/db/write_buffer.rs:26
Function
addAttackDot
(lat, lon, ip, service)
static/app.js:498
Function
api_countries
API: Get country statistics (cached for 5 minutes)
src/web/routes.rs:160
Function
api_locations
API: Get location data for map (cached for 5 minutes)
src/web/routes.rs:169
Function
api_recent
API: Get recent data for dashboard (credentials/commands cached 60s, events fresh)
src/web/routes.rs:140
Function
api_stats
API: Get statistics (cached for 5 minutes)
src/web/routes.rs:123
Function
api_top_ips_bandwidth
API: Get top IPs by bandwidth (cached for 5 minutes)
src/web/routes.rs:187
Function
api_top_ips_requests
API: Get top IPs by request count (cached for 5 minutes)
src/web/routes.rs:178
Function
api_total_bytes
API: Get total traffic bytes (cached for 5 minutes)
src/web/routes.rs:196
Method
auth_none
Accept "none" authentication
src/handlers/ssh.rs:255
Method
auth_password
Accept password authentication - capture credentials
src/handlers/ssh.rs:237
Method
auth_publickey
Accept public key authentication - log the key fingerprint
src/handlers/ssh.rs:270
Method
auth_publickey_offered
Accept public key offer (pre-signature check)
src/handlers/ssh.rs:288
Method
call
(&mut self, request: Request<Body>)
src/web/middleware.rs:103
Function
catch_all
Handler for all unknown paths - echo request, redirect to home Note: Logging is handled by the middleware layer
src/web/mod.rs:130
Method
channel_close
Handle channel close
src/handlers/ssh.rs:488
Method
channel_eof
Handle channel EOF
src/handlers/ssh.rs:500
Method
channel_open_session
Accept session channel open
src/handlers/ssh.rs:299
Method
constructor
()
static/stats.js:14
Method
constructor
()
static/app.js:7
Function
createAttackIcon
* 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
Function
createLocationIcon
* 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
Method
default
()
src/handlers/ssh.rs:65
Function
default_cache_size_mb
()
src/config.rs:40
Function
default_hours
()
src/web/routes.rs:50
Function
default_max_ports
()
src/config.rs:44
Function
events_handler
( State(state): State<Arc<AppState>>, )
src/web/sse.rs:14
Method
exec_request
Handle exec request - single command execution
src/handlers/ssh.rs:362
Function
flush_batch
Flush buffered events to database in a single transaction
src/db/write_buffer.rs:70
Method
generate_fake_output
Generate fake output for a command (static to avoid borrow checker issues)
src/handlers/ssh.rs:163
Method
get_filtered_count
(&self, since_ts: i64)
src/db/mod.rs:458
Method
get_service_stats_raw
(&self, since_ts: i64)
src/db/mod.rs:466
Method
get_top_credentials_raw
(&self, since_ts: i64, limit: i32)
src/db/mod.rs:482
Method
get_top_paths_raw
(&self, since_ts: i64, limit: i32)
src/db/mod.rs:505
Method
handle_session_error
(&mut self, error: <Self::Handler as Handler>::Error)
src/handlers/ssh.rs:52
Function
index
Serve the main dashboard page
src/web/routes.rs:30
Function
initAttackMap
()
static/app.js:414
Function
initMap
* 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
Method
insert_event
(&self, event: &AttackEvent)
src/db/mod.rs:170
Method
into_response
(self)
src/web/routes.rs:24
Method
load
()
src/config.rs:70
Function
main
()
src/main.rs:22
Function
merge_credential_stats
(mut rollup: Vec<CredentialStat>, live: Vec<CredentialStat>)
src/db/mod.rs:965
Function
merge_path_stats
(mut rollup: Vec<PathStat>, live: Vec<PathStat>)
src/db/mod.rs:978
Function
merge_service_stats
(mut rollup: Vec<ServiceStat>, live: Vec<ServiceStat>)
src/db/mod.rs:948
Method
new
(sender: broadcast::Sender<Arc<AttackEvent>>)
src/events.rs:13
Method
new
Create a new GeoIP instance, loading the database if available
src/geoip.rs:24
Method
new
(state: Arc<AppState>)
src/web/middleware.rs:67
Method
new
(ip: String, service: String, port: u16, request: String)
src/db/mod.rs:37
Method
new_client
(&mut self, addr: Option<SocketAddr>)
src/handlers/ssh.rs:37
Method
poll_ready
(&mut self, cx: &mut Context<'_>)
src/web/middleware.rs:99
Method
pty_request
Accept PTY request
src/handlers/ssh.rs:317
Function
robots_txt
Serve robots.txt
src/web/routes.rs:40
Method
shell_request
Handle shell request - send welcome and prompt
src/handlers/ssh.rs:334
Function
start
( port: u16, config: Arc<Config>, event_bus: Arc<EventBus>, write_tx: WriteSender, geoip:
src/handlers/telnet.rs:23
Function
start
( port: u16, service: &str, config: Arc<Config>, event_bus: Arc<EventBus>, write_tx: Write
src/handlers/tcp.rs:34
Function
start
Start the ICMP handler to capture ping requests
src/handlers/icmp.rs:52
Function
start
Start the SSH honeypot server
src/handlers/ssh.rs:543
Function
static_files
Handler for static files Security: Validates path to prevent directory traversal attacks
src/web/mod.rs:48
Function
stats_page
Serve the statistics page
src/web/routes.rs:35
Function
updateMapTileLayer
* 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
← previous
101–172 of 172, ranked by callers