Topics - x16wda [ switch to compact view ]

Pages: [1] 2 3 4 5next
1
N.A.N.Y. 2023 / NANY 2023: Pingmon (monitor ping status of an address)
« on: December 29, 2022, 09:21 PM »
NANY 2023 Entry Information

Application Name Pingmon
Version 3.9
Short Description Ping an address and send email or save log when state changes
Supported OSes Any modern Windows
Web Page None, just lives here
Download Link Zip file should be attached here
System Requirements
Version History
  • Hasn't been updated in 5 years, don't expect to in the next 5.


Description
I had a need to monitor a specific server that was having sporadic connection issues, and came up with this to watch what was happening. This version can email one or more users on state change, and save a log in text or CSV format. As stated, it uses blat.exe to provide email function, and date.exe from (unxutils) to provide time tracking. You will need to configure blat for your email server, but note it does not support encryption or Oauth2 so you might need to configure a mail relay - we use hMailserver for this purpose (simple but it's beyond the scope of this article).

Features
Monitors an IP address to find if it starts or stops responding to a ping. When the state changes, the bat file will send an email, save to a text log file, and/or save to a csv log file so you can keep track in realtime or afterward.

Planned Features
No enhancements expected, it does what I occasionally need.

Screenshots
It's a batch file doing pings, boring to look at.  ;D

Usage
Installation
Copy the three zipped files into %windir% (generally c:\windows).
Configure blat.exe (sample config command is "blat -install mailserver.name.or.ip from@address 35" from an elevated prompt).
The two required exes are included in this zip for convenience but are available on the interwebz:
date.exe   - see http://unxutils.sourceforge.net/
blat.exe   - see http://www.blat.net


Using the Application
Just type "pingmon" in a command prompt, the usage prompt tells you how to use it...

pingmon: ping an address every x seconds, log/email on state change (3.9)
usage:   pingmon computer frequency emailaddress logfile csvfile [mailserver]
usage:     computer     = computer name or IP address
usage:     frequency    = seconds between ping attempts
usage:     emailaddress = valid email address, or period for no email
usage:     logfile      = complete log file name, or period for no log file
usage:     csvfile      = complete csv file name, or period for no csv log
usage:     mailserver   = optional mail server to override blat setting
usage:   note, use valid email address and file names, no checking is done


Uninstallation
Just delete the three files to "uninstall".

Tips
Really, just try it and see. Since it's a dumb batch file, make your life easier and do not use any spaces in filenames. Filenames should use the complete path and name unless you want the log files in your current directory. Use a valid email address as a recipient, and following blat syntax you can have multiple recipient addresses separated by commas (no spaces). Note that since it is just a batch file, you'll of course need to leave the window running (minimized is fine). And it does no error checking, so use reasonable and valid values.

Known Issues
The whole script is based on looking for the "bytes=" response for a successful ping, so if a non-English installation uses a different word then it won't work right (but you should be able to edit the batch file for that easily).

2
General Software Discussion / email sender rewrite proxy
« on: August 17, 2021, 01:50 PM »
Hi folks! I am in need of collective wisdom. I need a band-aid to go between ancient LOB software and M365 email.

The company finally killed off the on premise Exchange and Notes servers. However, with all of the systems running on local servers and sending out emails to both company and external recipients, I had to put in place some proxy servers to gather the messages and relay through 365. This is done using hMailserver with a simple authenticated relay configuration, and sender addresses are all set up with mailbox delegation to the account the proxy server is sending as. Works fine, except...

We have one old system that sends email reports using a very specific sender address. The authors of this software hard coded the sender address using a domain that is currently owned by IBM. And because the relays can only accept sender addresses that are known in the organization, and we cannot define this domain in 365, the emails are rejected.

I have done my due diligence and have changed the offending sender address to an acceptable value, with the same number of characters, everywhere that I could find on this server. Still the bad address gets used. I have spent way too much time looking for where it is coming from, our DBA has dug through the database, still can't find it.

So all that is to explain why I am looking for an email proxy that will allow you to rewrite a sender address. Mail comes in, if it's from address xyz then it gets changed to be from abc, then gets sent on to the "normal" proxy. If the sender is not xyz, then it just gets sent on.

It needs to be something that can run on Windows server, ideally something as simple as hMailserver. I tried to write a rule for hMailserver to do this but was not successful. Volume of messages is low so does not need to be super efficient, just needs to be reliable.

Anyone have any ideas? I have not yet stumbled upon the magical query to make the google give me a good answer...

3
Living Room / Thoughts on cryptocurrencies
« on: July 30, 2020, 05:30 PM »
Anyone have any random thoughts on cryptocurrencies, specifically which variants will tend to be long-lived, and which will actually give you a chance to realistically mine a little? Bitcoin is of course the old master but a "real person" (without hard core hardware) will never mine one unless you're in a pool and get a fraction of credit. Is Litecoin defunct? Looked to be $50-ish per when I last checked, but I don't know how the cost/benefit works for it. Ethereum seems to be the current sweetheart, but we've seen those come and go. While you can't guarantee the worth over time, you'd like to choose a coin that would be difficult to hijack.

I had mined about a bit-dime's worth of bitcoin but stopped for a year or two when I changed hardware. When I picked it back up there were like two levels of update for the bitchain client software, and while my wallet showed that it was not corrupted, and showed the amount properly, the password that I had noted (and literally a hundred variations on it) weren't accepted for a transfer. I found that to be less than optimal.

Anyway I have some hardware sitting around, including a middlin' GPU that I used for some john and hashcat for work, but that's finished. Seems I ought to do something with it but since I'd start fresh, I thought I'd ask folks more knowledgeable than me. Some of the coin algorithms don't benefit from a GPU I understand.


PS- Anyone suggestions on cracking that bitcoin wallet? Try hashcat (passphrase was 22 characters)? Is there a way to use out of date software to pull the data from it in a form I can use? Whenever I tried to install old versions it insisted in updating due to blockchain changes.

4
General Software Discussion / Altap Salamander now freeware
« on: August 09, 2019, 06:14 PM »
I haven't noticed anyone post that the Altap Salamander file manager is now freeware - did I just miss the post?

Altap Salamander download page

Download Altap Salamander 4.0 - Freeware
Altap Salamander (including all plugins) from version 4.0 becomes freeware for both commercial and non-commercial use. Users of older Salamander versions can upgrade to version 4.0 free of charge. Version 4.0 requires Windows 7 or newer. There are not other limitations compared to commercial version 3.08.

5
Found Deals and Discounts / Humble book bundle
« on: December 11, 2017, 05:40 AM »
Humble book bundle has a pretty good list of insanely cheap DRM free digital books. Granted the Windows ones are 2012 R2 and not 2016, but you can't beat the price. Good for reference, review, and entertainment.

https://www.humblebundle.com/books/network-security-certification-books

Pages: [1] 2 3 4 5next
Go to full version