profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/thecliguy/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

itadder/PoshLook 25

Exchange Powershell / Cli Email Client (like pine, but powershell based). And also to be used in automation scripts. Little by little start adding other Exchange features, like Calendar, Task/Reminders, and Contact list. CLI client, for those who spend all day in powershell and Conemu.

thecliguy/format_bridge_bot_output 1

A WeeChat script to intercept and format messages from a bridge bot

thecliguy/Get-ChildItemToDepth 1

Traverses a path recursively to a specified depth.

thecliguy/asciivmssdashboard 0

ASCii VM Scale Set Dashboard

thecliguy/ceefax.js 0

A BBC Ceefax terminal/emulator in HTML5 & Javascript

thecliguy/CLRCLI 0

CLRCLI is an event-driven library for building line-art user interfaces in C#/.Net command-line applications.

thecliguy/console 0

Windows Console Tools

thecliguy/DisplayAndLog 0

A sub procedure for displaying text to the console and/or logging to a file

thecliguy/firewall 0

Free firewall for windows

thecliguy/Get-NthWorkingDayOfMonth 0

Gets the Nth working day of a specific month and year

delete branch thecliguy/vimwiki

delete branch : thecliguy-IrcChannelInHelp

delete time in a month

PR opened vimwiki/vimwiki

Replaced references to Freenode IRC with Libera

As per #1131, the IRC channel has been migrated from Freenode to Libera.

This change replaces a reference to Freenode in vimwiki.txt with Libera.

@Nudin @brennen Since this is not a change to the functionality of vimwiki I decided not to bother updating the ChangeLog within vimwiki.txt. Are you happy with that decision?

+2 -2

0 comment

1 changed file

pr created time in a month

create barnchthecliguy/vimwiki

branch : thecliguy-IrcChannelInHelp

created branch time in a month

push eventthecliguy/vimwiki

thecliguy

commit sha 9bbc490e31dcc9f1f39256fcd4530b32193f3db0

Replace references to Freenode IRC channel with Libera

view details

push time in a month

issue closedthecliguy/get_cipher_suites

TLS mapping and extraction from host

Reading List the Supported TLS Cipher Suites on a Host and TLS Cipher Suite Naming Conventions I can see you are interested in SSL/TLS.

So I wanted to show you a tool I created tls-map library in ruby.

This is a simple way to convert any OpenSSL (or GnuTLS, NSS, etc.) cipher name into IANA/standard/RFC cipher names or hexadecimal codepoints or the other way around:

require 'tls_map'

tm = TLSmap::App.new

# OpenSSL -> IANA
tm.search(:openssl, 'AES128-SHA', :iana) #=> {:iana=>"TLS_RSA_WITH_AES_128_CBC_SHA"}
# Hexadecimal codepoint to all (including OpenSSL & IANA)
tm.search(:codepoint, '1303') #=> {:codepoint=>"1303", :iana=>"TLS_CHACHA20_POLY1305_SHA256", :openssl=>"TLS_CHACHA20_POLY1305_SHA256", :gnutls=>"CHACHA20_POLY1305_SHA256", :nss=>"TLS_CHACHA20_POLY1305_SHA256"}

It's also available as a CLI tool:

$ tls-map search openssl AES128-SHA -o iana
iana: TLS_RSA_WITH_AES_128_CBC_SHA

A mapping table is maintained here: https://sec-it.github.io/tls-map/#/pages/mapping

And if you want to retrieve the ciphers from a host there are some existing tools for that: SSLyze, sslscan2, testssl.sh, ssllabs-scan

  • sslyze --json_out=example.org.json example.org
  • sslscan2 --show-cipher-ids --xml=example.org.xml example.org
  • testssl --jsonfile-pretty example.org.json --mapping no-openssl --cipher-per-proto example.org
  • ssllabs-scan --quiet example.org > example.org.json

closed time in a month

noraj

issue commentthecliguy/get_cipher_suites

TLS mapping and extraction from host

Thanks for the information, much appreciated.

noraj

comment created time in a month

issue commentthecliguy/get_cipher_suites

TLS mapping and extraction from host

Hi, Please accept my apologies that it has taken so long to respond. I didn't receive a notification when you logged this issue, I think this must be because I hadn't "watched" this repository. I didn't realise that as the maintainer I had to watch my own repos in order to receive notifications. Anyhow...

Thank you for letting me know about tls-map. I noticed that the link to the repo you provided has been archived. Is this now the official repo?

noraj

comment created time in 2 months

issue commentrnwood/smtp4dev

Relay between two instances of smtp4dev

@jafin It's not working quite right...

Here's the commands I used to start the two instances of smtp4dev:

"C:\Bitbucket\Rnwood.Smtp4dev-win-x64-3.1.3-ci20210907116\Rnwood.Smtp4dev.exe" --baseappdatapath=c:\temp\smtp1 --urls=http://*:5005 --smtpport=2525 --imapport=2445 --relaytlsmode=none --relaysmtpserver=localhost --relaysmtpport=2526 --relayautomaticallyemails=test@example.com
"C:\Bitbucket\Rnwood.Smtp4dev-win-x64-3.1.3-ci20210907116\Rnwood.Smtp4dev.exe" --baseappdatapath=c:\temp\smtp2 --urls=http://*:5006 --smtpport=2526 --imapport=2446 --relaytlsmode=none

I then sent an email via 127.0.0.1 on port 2525 using PowerShell's Send-MailMessage cmdlet:

Send-MailMessage -To "test@example.com" -From "NoReply@example.com" -Subject "Test Subject" -Body "Test Body" -SmtpServer 127.0.0.1 -Port 2525

It seems as though the --relaysmtpport=2526 parameter is being ignored because if the error message that's being returned can be trusted it suggests that relaying is using port 25:

No connection could be made because the target machine actively refused it. 127.0.0.1:25

Here's the full error:

Session started. Client address 127.0.0.1.
Message received. Client address 127.0.0.1. From NoReply@example.com. To test@example.com.
Processing received message
Relaying message to test@example.com
Can not relay message to test@example.com: System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): No connection could be made because the target machine actively refused it. 127.0.0.1:25
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.MailService.ConnectSocket(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
   at Rnwood.Smtp4dev.Startup.<>c.<ConfigureServices>b__4_1(RelayOptions relayOptions) in /home/vsts/work/1/s/Rnwood.Smtp4dev/Startup.cs:line 76
   at Rnwood.Smtp4dev.Server.Smtp4devServer.TryRelayMessage(Message message, MailboxAddress[] overrideRecipients) in /home/vsts/work/1/s/Rnwood.Smtp4dev/Server/Smtp4devServer.cs:line 326
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): No connection could be made because the target machine actively refused it. 127.0.0.1:25
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.SocketUtils.ConnectAsync(String host, Int32 port, IPEndPoint localEndPoint, Int32 timeout, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.MailService.ConnectSocket(String host, Int32 port, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
   at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
   at Rnwood.Smtp4dev.Startup.<>c.<ConfigureServices>b__4_1(RelayOptions relayOptions) in /home/vsts/work/1/s/Rnwood.Smtp4dev/Startup.cs:line 76
   at Rnwood.Smtp4dev.Server.Smtp4devServer.TryRelayMessage(Message message, MailboxAddress[] overrideRecipients) in /home/vsts/work/1/s/Rnwood.Smtp4dev/Server/Smtp4devServer.cs:line 326
Processing received message DONE
Session completed. Client address 127.0.0.1. Number of messages 1.
thecliguy

comment created time in 2 months

issue commentrnwood/smtp4dev

Relay between two instances of smtp4dev

@thecliguy , a preview build is available that includes the change for the baseappdirpath. With these changes I can run 2 instances. Would you be able to see if it solves your issue? (https://github.com/rnwood/smtp4dev/releases/tag/3.1.3-ci20210907116)

Hi @jafin - I'm a bit confused, there doesn't seem to be a parameter called baseappdirpath.

Am I supposed to be using baseappdatapath or basepath?

thecliguy

comment created time in 2 months

issue commentrnwood/smtp4dev

Relay between two instances of smtp4dev

@jafin Wouldn't the first instance need to include the following parameters to instruct it to use the second instance as a relay?

--relaysmtpserver=VALUE
                       Sets the name of the SMTP server that will be used
                         to relay messages or "" if messages relay should
                         not be allowed

--relayautomaticallyemails=VALUE
                       A comma separated list of recipient addresses for
                         which messages will be relayed automatically. An
                         empty list means that no messages are relayed

So for example, the commands for each instance would be something like this:

rnwood.smtp4dev --urls=http://*:5005 --smtpport=2525 --imapport=2445 --db=.\smtp2525\database.db --relaytlsmode=none --relayautomaticallyemails=test@example.com --relaysmtpport=2526
rnwood.smtp4dev --urls=http://*:5006 --smtpport=2526 --imapport=2446 --db=.\smtp2526\database.db --relaytlsmode=none

Even if I'm right about this, I still can't get it to work though...

thecliguy

comment created time in 2 months

issue openedrnwood/smtp4dev

Relay between two instances of smtp4dev

Is it possible to run two instances of smtp4dev on the same machine, where the first instance is configured to relay to the second instance?

If this is possible, please can you provide an example of the configuration that would be required for the two instances?

I've attempted to get this working but not succeeded so far.

created time in 2 months

CommitCommentEvent