Skip to content

Instantly share code, notes, and snippets.

@MaskyS
Created November 11, 2017 16:49
Show Gist options
  • Save MaskyS/ef2d3d91b00ec65ed7ea24063f2e3557 to your computer and use it in GitHub Desktop.
Save MaskyS/ef2d3d91b00ec65ed7ea24063f2e3557 to your computer and use it in GitHub Desktop.
Patch:
/*
diff --git a/src/ssl.c b/src/ssl.c
index 3fb0f4d..07e6c95 100644
--- a/src/ssl.c
+++ b/src/ssl.c
@@ -283,6 +283,9 @@ SslInitializeCTX(SSL_PROPERTIES *psProperties, char *pcError)
#ifdef SSL_OP_NO_TLSv1_1
| SSL_OP_NO_TLSv1_1
#endif
+#ifdef SSL_OP_NO_TLSv1_2
+ | SSL_OP_NO_TLSv1_2
+#endif
)
);
*/
Command: ./bin/ftimes --get ./bin/config.cfg
Contents of config.cfg:
*/
BaseName=tls13
URLGetURL=https://tls14.com:443/cgi-bin/hello.py
URLGetRequest=MapConfig
GetAndExec=N
URLAuthType=none
SSLUseCertificate=Y
SSLPublicCertFile=/home/masky/sslcert/PublicCert.pem
SSLPrivateKeyFile=/home/masky/sslcert/PrivateKey.pem
SSLPassPhrase=passphrase
SSLVerifyPeerCert=N
/*
Result:
<< PROPERTY >>>|Program=ftimes 3.12.0 (ds8) 64-bit pcre(8.39),ssl(1.1.1),xmagic --get
<<< PROPERTY >>>|SystemOS=x86_64 Linux 4.10.0-38-generic
<<< PROPERTY >>>|Hostname=ubuntu
<<< PROPERTY >>>|JobEpoch=2017-11-11 20:45:12 +04
<<< PROPERTY >>>|JobPid=57534
<<< PROPERTY >>>|JobUid=1000
<<< PROPERTY >>>|LogLevel=2
+++ LANDMARK +++|Stage1=GetModeInitialize
<<< PROPERTY >>>|Config=./bin/config.cfg
+++ LANDMARK +++|Stage2=GetModeCheckDependencies
+++ LANDMARK +++|Stage3=GetModeFinalize
<<< PROPERTY >>>|BaseName=tls13
<<< PROPERTY >>>|GetAndExec=N
<<< PROPERTY >>>|URLGetURL=https://tls14.com:443/cgi-bin/hello.py
<<< PROPERTY >>>|URLGetRequest=MapConfig
+++ LANDMARK +++|Stage4=GetModeWorkHorse
#!/usr/bin/python
print 'Content-Type: text/html'
print
print '<html>'
print '<head><title>Hello from Python</title></head>'
print '<body>'
print '<h2>Hello from Python</h2>'
print '</body></html>'
+++ LANDMARK +++|Stage5=GetModeFinishUp
<<< PROPERTY >>>|LogFileName=stderr
<<< PROPERTY >>>|OutFileName=stdout
<<< PROPERTY >>>|Warnings=0
<<< PROPERTY >>>|Failures=0
<<< PROPERTY >>>|Duration=5.388008 (s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment