Exploit databaseDownload repository ZIP
GH-e19a96fa624ea4ab9de156192006552e
adewale/rogue_planet
Sources for CVE-2009-2937
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files25
adewale/rogue_planetRevision 569d25dc60e0
- ↑..Parent directory
- cmd_add_all.go
- cmd_add_feed.go
- cmd_export_opml.go
- cmd_fetch.go
- cmd_generate.go
- cmd_helpers.go
- cmd_import_opml.go
- cmd_init.go
- cmd_list_feeds.go
- cmd_options.go
- cmd_parsers.go
- cmd_parsers_test.go
- cmd_prune.go
- cmd_remove_feed.go
- cmd_status.go
- cmd_update.go
- cmd_verify.go
- commands_test.go
- entry_spam_integration_test.go
- integration_test.go
- main.go
- opml_integration_test.go
- realworld_integration_test.go
- test_helpers.go
- xss_pipeline_test.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cmd/rp/cmd_status.go
Go · 1,444 bytespackage main
import (
"context"
"fmt"
)
func cmdStatus(opts StatusOptions) error {
cfg, repo, cleanup, err := openConfigAndRepo(opts.ConfigPath)
if err != nil {
return err
}
defer cleanup()
ctx := context.Background()
// Get feed counts
feeds, err := repo.GetFeeds(ctx, false)
if err != nil {
return fmt.Errorf("failed to get feeds: %w", err)
}
activeFeeds := 0
for _, feed := range feeds {
if feed.Active {
activeFeeds++
}
}
// Get entry count
totalEntries, err := repo.CountEntries(ctx)
if err != nil {
return fmt.Errorf("failed to count entries: %w", err)
}
// Get recent entry count (based on config days)
recentEntries, err := repo.CountRecentEntries(ctx, cfg.Planet.Days)
if err != nil {
return fmt.Errorf("failed to count recent entries: %w", err)
}
// Display status
fmt.Fprintln(opts.Output, "Rogue Planet Status")
fmt.Fprintln(opts.Output, "===================")
fmt.Fprintln(opts.Output)
fmt.Fprintf(opts.Output, "Feeds: %d total (%d active, %d inactive)\n", len(feeds), activeFeeds, len(feeds)-activeFeeds)
fmt.Fprintf(opts.Output, "Entries: %d total\n", totalEntries)
fmt.Fprintf(opts.Output, "Recent entries: %d (last %d days)\n", recentEntries, cfg.Planet.Days)
fmt.Fprintln(opts.Output)
fmt.Fprintf(opts.Output, "Output: %s/index.html\n", cfg.Planet.OutputDir)
fmt.Fprintf(opts.Output, "Database: %s\n", cfg.Database.Path)
return nil
}