Skip to content

Commit

Permalink
Merge pull request #55 from shekyan/1.8.1
Browse files Browse the repository at this point in the history
1.8.1
  • Loading branch information
shekyan authored Nov 1, 2019
2 parents afab6ca + d8a3d8c commit 6b1121c
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
autom4te.cache/
Makefile
config.h
config.log
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.9

RUN apk add --no-cache build-base git openssl-dev
RUN mkdir /slowhttptest
Expand Down
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for slowhttptest 1.7.
# Generated by GNU Autoconf 2.69 for slowhttptest 1.8.1.
#
# Report bugs to <shekyan@gmail.com>.
#
Expand Down Expand Up @@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='slowhttptest'
PACKAGE_TARNAME='slowhttptest'
PACKAGE_VERSION='1.7'
PACKAGE_STRING='slowhttptest 1.7'
PACKAGE_VERSION='1.8.1'
PACKAGE_STRING='slowhttptest 1.8.1'
PACKAGE_BUGREPORT='shekyan@gmail.com'
PACKAGE_URL=''

Expand Down Expand Up @@ -1276,7 +1276,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures slowhttptest 1.7 to adapt to many kinds of systems.
\`configure' configures slowhttptest 1.8.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1342,7 +1342,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of slowhttptest 1.7:";;
short | recursive ) echo "Configuration of slowhttptest 1.8.1:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1435,7 +1435,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
slowhttptest configure 1.7
slowhttptest configure 1.8.1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1896,7 +1896,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by slowhttptest $as_me 1.7, which was
It was created by slowhttptest $as_me 1.8.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -2763,7 +2763,7 @@ fi

# Define the identity of the package.
PACKAGE='slowhttptest'
VERSION='1.7'
VERSION='1.8.1'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -6329,7 +6329,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by slowhttptest $as_me 1.7, which was
This file was extended by slowhttptest $as_me 1.8.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -6395,7 +6395,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
slowhttptest config.status 1.7
slowhttptest config.status 1.8.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT(slowhttptest, 1.7, shekyan@gmail.com)
AC_INIT(slowhttptest, 1.8.1, shekyan@gmail.com)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/slowhttptest.cc])
AC_CONFIG_HEADERS([config.h])
Expand Down
2 changes: 1 addition & 1 deletion src/range-generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/

#include "range-generator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/range-generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/


Expand Down
10 changes: 5 additions & 5 deletions src/slowhttptest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/
#include "config.h"
#include "slowhttptest.h"
Expand Down Expand Up @@ -441,7 +441,7 @@ bool SlowHTTPTest::init(const char* url, const char* verb,
test_info));
dumpers_.push_back(new CSVDumper(csv_file_name,
"Seconds,Closed,Pending,Connected,Service Available\n"));
for (int i = 0; i < dumpers_.size(); ++i) {
for (uint i = 0; i < dumpers_.size(); ++i) {
if (!dumpers_[i]->Initialize()) {
slowlog(LOG_FATAL, "Stat files cannot be opened for writing:\
\n\t%s\n",
Expand Down Expand Up @@ -478,7 +478,7 @@ void SlowHTTPTest::report_parameters() {
}
if(eSlowRead != test_type_) {
slowlog(LOG_INFO, "\n\t" cLCY PACKAGE " version " VERSION
"\n - https://code.google.com/p/slowhttptest/ -\n"
"\n - https://github.com/shekyan/slowhttptest -\n"
cBLU "test type:" cLBL " %s\n"
cBLU "number of connections:" cLBL " %d\n"
cBLU "URL:" cLBL " %s\n"
Expand All @@ -505,7 +505,7 @@ void SlowHTTPTest::report_parameters() {
);
} else { // slow read
slowlog(LOG_INFO, "\n\t" cLCY PACKAGE " version " VERSION
"\n - https://code.google.com/p/slowhttptest/ -\n"
"\n - https://github.com/shekyan/slowhttptest -\n"
cBLU "test type:" cLBL " %s\n"
cBLU "number of connections:" cLBL " %d\n"
cBLU "URL:" cLBL " %s\n"
Expand Down Expand Up @@ -571,7 +571,7 @@ void SlowHTTPTest::report_status(bool to_stats) {
}

if(to_stats) {
for (int i = 0; i < dumpers_.size(); ++i) {
for (uint i = 0; i < dumpers_.size(); ++i) {
dumpers_[i]->WriteStats("%d,%d,%d,%d,%d",
seconds_passed_,
closed_,
Expand Down
2 changes: 1 addition & 1 deletion src/slowhttptest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* class SlowHTTPTest implements main functionality of slow HTTP attack
* vulnerability detection. before calling run_test(),
Expand Down
4 changes: 2 additions & 2 deletions src/slowhttptestmain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Victor Agababov vagababov@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/

#include "config.h"
Expand Down Expand Up @@ -304,7 +304,7 @@ int main(int argc, char **argv) {
&& !check_window_range(window_lower_limit, window_upper_limit))
return -1;
if(!strlen(url)) {
strncpy(url, DEFAULT_URL, sizeof(DEFAULT_URL));
strncpy(url, DEFAULT_URL, sizeof(url));
}
signal(SIGPIPE, SIG_IGN);
signal(SIGINT, &int_handler);
Expand Down
2 changes: 1 addition & 1 deletion src/slowlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Victor Agababov vagababov@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/


Expand Down
2 changes: 1 addition & 1 deletion src/slowlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Victor Agababov vagababov@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* Simple logging with verbosity levels
*****/
Expand Down
6 changes: 3 additions & 3 deletions src/slowsocket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/

#include <errno.h>
Expand Down Expand Up @@ -56,8 +56,8 @@ SlowSocket::SlowSocket()
stop_in_millisecs_(0),
state_(eInit),
last_read_in_msec_(0),
read_interval_(0),
window_size_(-1) {
window_size_(-1),
read_interval_(0){
}

SlowSocket::~SlowSocket() {
Expand Down
2 changes: 1 addition & 1 deletion src/slowsocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Tigran Gevorgyan
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* class SlowSocket is a wrapper around TCP socket structure.
* class gives unified access to main socket operations no matter
Expand Down
2 changes: 1 addition & 1 deletion src/slowstats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* class StatsDumper and derived classes help to generate
* statistics of the test in CSV and Google Chart Tools
Expand Down
2 changes: 1 addition & 1 deletion src/slowstats.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* class StatsDumper and derived classes help to generate
* statistics of the test in CSV and Google Chart Tools
Expand Down
2 changes: 1 addition & 1 deletion src/slowurl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*****/

#include <limits.h>
Expand Down
2 changes: 1 addition & 1 deletion src/slowurl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Sergey Shekyan shekyan@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
* class that parses URI and store URI components.
*****/
Expand Down
2 changes: 1 addition & 1 deletion src/text-generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Victor Agababov vagababov@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
*This file contains classes for text payload generation
*****/
Expand Down
2 changes: 1 addition & 1 deletion src/text-generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Author: Victor Agababov vagababov@gmail.com
*
* Slow HTTP attack vulnerability test tool
* http://code.google.com/p/slowhttptest/
* https://github.com/shekyan/slowhttptest
*
*This file contains classes for text payload generation
*****/
Expand Down

0 comments on commit 6b1121c

Please sign in to comment.