mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-11-22 02:51:35 +01:00
Updated Findings and HowTo Fix them (markdown)
parent
9fc097b4c5
commit
60a6786389
@ -4,17 +4,22 @@
|
||||
|
||||
Two options here:
|
||||
|
||||
* Run the whole script with ``--debug=1 --log``. Then ``tar -cvzf mydebug.tgz /tmp/ssltester.<randomstring> <nameoflogfile>``
|
||||
* Run the whole script with ``--debug=<number> --log``. Then ``tar -cvzf mydebug.tgz /tmp/ssltester.<randomstring> <nameoflogfile>``
|
||||
* Run the section where the problem is (see ``--help``): ``script -c "bash -vx testssl.sh optionfortherightsection>"``
|
||||
|
||||
For \<number\> see man page.
|
||||
|
||||
### Debug yourself
|
||||
|
||||
YMMV
|
||||
1) YMMV
|
||||
|
||||
* spot the section where the bug is
|
||||
2a) For a full debug output
|
||||
* **(all-in-one output):** run ``script -a mydebug.script -c "SETX=true bash -x testssl.sh <CMDLINE>"``
|
||||
* **(separate debugging file):** or run "bash -x testssl.sh <CMDLINE>" and look for last file in /tmp/testssl.s-XXXX.log
|
||||
|
||||
2b) spot the section where the bug is
|
||||
* edit the script and put **after** the section an ``exit 0``
|
||||
* switch on debugging either by
|
||||
* editing the program and add before a ``set -x``, run the section of the script
|
||||
* run the script with ``bash -vx testssl.sh <<optionfortherightsection>>``
|
||||
* run the script with ``bash -x testssl.sh <<optionfortherightsection>>``
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user