Example #1
0
/* render all windows */
static void
render_screens (void)
{
  GColors *color = get_color (COLOR_DEFAULT);
  int row, col, chg = 0;

  getmaxyx (stdscr, row, col);
  term_size (main_win);

  generate_time ();
  chg = logger->processed - logger->offset;

  draw_header (stdscr, "", "%s", row - 1, 0, col, color_default);

  wattron (stdscr, color->attr | COLOR_PAIR (color->pair->idx));
  mvaddstr (row - 1, 1, "[F1]Help [Enter] Exp. Panel");
  mvprintw (row - 1, 30, "%d - %s", chg, asctime (now_tm));
  mvaddstr (row - 1, col - 21, "[Q]uit GoAccess");
  mvprintw (row - 1, col - 5, "%s", GO_VERSION);
  wattroff (stdscr, color->attr | COLOR_PAIR (color->pair->idx));

  refresh ();

  /* call general stats header */
  display_general (header_win, conf.ifile, logger);
  wrefresh (header_win);

  /* display active label based on current module */
  update_active_module (header_win, gscroll.current);

  display_content (main_win, logger, dash, &gscroll);
}
Example #2
0
/* render all windows */
static void
render_screens (void)
{
  int row, col, chg = 0;

  getmaxyx (stdscr, row, col);
  term_size (main_win);

  generate_time ();
  chg = logger->process - logger->offset;

  draw_header (stdscr, "", "%s", row - 1, 0, col, 0, 0);
  wattron (stdscr, COLOR_PAIR (COL_WHITE));
  mvaddstr (row - 1, 1, "[F1]Help [O]pen detail view");
  mvprintw (row - 1, 30, "%d - %s", chg, asctime (now_tm));
  mvaddstr (row - 1, col - 21, "[Q]uit GoAccess");
  mvprintw (row - 1, col - 5, "%s", GO_VERSION);
  wattroff (stdscr, COLOR_PAIR (COL_WHITE));
  refresh ();

  /* call general stats header */
  display_general (header_win, conf.ifile, logger);
  wrefresh (header_win);

  /* display active label based on current module */
  update_active_module (header_win, gscroll.current);

  display_content (main_win, logger, dash, &gscroll);
}
Example #3
0
void display_usage( void )
{
    display_general();
   	puts("Usage: IP [options]\n");
	puts("Options:");
	puts("\t-x \t\tAuto scan");
	puts("\t-s \t\tIp range\n\t\t\t(support <start>-<end> or cidr style)");
	puts("\t-p <start>-<end>\tStarting and ending port\n\t\t\t(default: only frequent ports - check readme)");
	puts("\tOR -p <port_list>\tPorts list with commas\n\t\t\t(like -p 25,137,139)");
	puts("\t-n <thread>\tNumber of scan thread\n\t\t\t(default: 10)"); 
	puts("\t-w <time>\tMax waiting time for each port in milliseconds\n\t\t\t(default: 3000)");
	//puts("\t-a\t\tReport all ports (OPENED, CLOSED and TIMEDOUT)");
	puts("\t-b\t\tGet repsonse banner if it could");
	puts("\t-r\t\tResolve ports to known services");
	//puts("\t-m\t\tMAC lookup of remote IP");
	puts("\t-h\t\tFucking help\n");
	printf("Command line example: -s 192.168.1.1-192.168.1.254 -p 1-65535 -n 20 -w 2000 -r -m\n\n");
	printf("                      -s 192.168.1.1/24 -p 1-65535 -n 20 -w 2000 -r -m\n\n");
	printf("                      -s 192.168.1.1 -p 21,22,23,3389 -n 20 -w 2000 -r -m\n\n");
    exit(EXIT_FAILURE);
}