1.12b-working directory conf, add KnownIssues URL

- Improved visibility of the KnownIssues page (reports, Makefile).

  - The location of assets/ directory is now configurable.

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
This commit is contained in:
Steve Pinkham 2010-03-23 09:56:13 -04:00
parent cf67fd9480
commit e29db14ace
6 changed files with 37 additions and 11 deletions

View File

@ -1,3 +1,10 @@
Version 1.12b:
--------------
- Improved visibility of the KnownIssues page (reports, Makefile).
- The location of assets/ directory is now configurable.
Version 1.11b:
--------------

View File

@ -36,7 +36,10 @@ all: $(PROGNAME)
$(PROGNAME): $(PROGNAME).c $(OBJFILES) $(INCFILES)
$(CC) $(PROGNAME).c -o $(PROGNAME) $(CFLAGS_OPT) $(OBJFILES) $(LDFLAGS)
@echo
@echo "NOTE: See dictionaries/README-FIRST to pick a dictionary for the tool."
@echo "See dictionaries/README-FIRST to pick a dictionary for the tool."
@echo
@echo "Having problems with your scans? Be sure to visit:"
@echo "http://code.google.com/p/skipfish/wiki/KnownIssues"
@echo
debug: $(PROGNAME).c $(OBJFILES) $(INCFILES)

View File

@ -38,6 +38,14 @@ body {
font-size: 80%;
}
.hdr_tips {
clear: right;
float: right;
font-size: 70%;
color: coral;
padding: 0.5em 0 0 0;
}
.summary1 {
padding: 0 1em 0 1em;
}
@ -725,7 +733,7 @@ if ('\v' == 'v')
</head>
<body onload="initialize()">
<img src="sf_name.png" width="203" height="93" style="float: left">
<a href="http://code.google.com/p/skipfish/" target="_blank"><img src="sf_name.png" width="203" height="93" style="float: left; border: 0"></a>
<div class="req_div" id="req_div">
<div class="req_hdr" id="req_hdr" onclick="hide_dat()">HTTP trace - click this bar or hit ESC to close</div>
@ -740,6 +748,11 @@ if ('\v' == 'v')
<td class="summary1">Total time:</td><td class="summary2" id="scan_time"></td></tr>
</table>
<div class="hdr_tips">
Problems with this scan?
<a href="http://code.google.com/p/skipfish/wiki/KnownIssues" target="_blank">Click here</a> for advice.
</div>
<br clear="all">
<h2>Crawl results - click to expand:</h2>

View File

@ -23,10 +23,15 @@
#ifndef _HAVE_CONFIG_H
#define _HAVE_CONFIG_H
#define VERSION "1.11b"
#define VERSION "1.12b"
#define USE_COLOR 1 /* Use terminal colors */
/* Default paths to runtime files: */
#define ASSETS_DIR "assets"
#define DEF_WORDLIST "skipfish.wl"
/* Various default settings for HTTP client (cmdline override): */
#define MAX_CONNECTIONS 50 /* Simultaneous connection cap */
@ -67,8 +72,6 @@
#define MAX_DEPTH 16 /* Maximum crawl tree depth */
#define MAX_CHILDREN 1024 /* Maximum children per tree node */
#define DEF_WORDLIST "skipfish.wl" /* Default wordlist file */
/* Crawl / analysis constants: */
#define MAX_WORD 64 /* Maximum wordlist item length */

View File

@ -704,7 +704,7 @@ static void output_summary_views() {
}
/* Copies over assets/... to target directory. */
/* Copies over assets to target directory. */
static u8* ca_out_dir;
@ -714,8 +714,8 @@ static int copy_asset(const struct dirent* d) {
if (d->d_name[0] == '.' || !strcmp(d->d_name, "COPYING")) return 0;
itmp = ck_alloc(6 + strlen(d->d_name) + 2);
sprintf((char*)itmp, "assets/%s", d->d_name);
itmp = ck_alloc(strlen(ASSETS_DIR) + strlen(d->d_name) + 2);
sprintf((char*)itmp, "%s/%s", ASSETS_DIR, d->d_name);
i = open((char*)itmp, O_RDONLY);
otmp = ck_alloc(strlen((char*)ca_out_dir) + strlen(d->d_name) + 2);
@ -741,7 +741,7 @@ static int copy_asset(const struct dirent* d) {
static void copy_static_code(u8* out_dir) {
struct dirent** d;
ca_out_dir = out_dir;
scandir("assets", &d, copy_asset, NULL);
scandir(ASSETS_DIR, &d, copy_asset, NULL);
}

View File

@ -378,8 +378,8 @@ int main(int argc, char** argv) {
}
if (access("assets/index.html", R_OK))
PFATAL("Unable to access 'assets/index.html' - wrong directory?");
if (access(ASSETS_DIR "/index.html", R_OK))
PFATAL("Unable to access '%s/index.html' - wrong directory?", ASSETS_DIR);
srandom(seed);