The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

How to Find Saved WiFi Passwords in Windows – Geeks Gyaan

Posted by jpluimers on 2017/09/07

How to Find Saved WiFi Passwords in Windows – Geeks Gyaan [WayBack]: the rescue is netsh [WayBack].

netsh wlan show profiles
netsh wlan show profile name=network-name key=clear

–jeroen

via: Easily find save WiFi passwords in Windows – Joe C. Hecht – Google+ [WayBack]

Posted in Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1 | 3 Comments »

Fedora BTRFS+Snapper PART 2: Full System Snapshot/Rollback « A Random Walk Down Tech Street

Posted by jpluimers on 2017/09/07

Interesting reads:

Need to research how I can fit noatime ino.

–jeroen

Posted in *nix, *nix-tools, btrfs, File-Systems, Power User | Leave a Comment »

how to filter name/value pairs under a registry key by name and value in PowerShell – Stack Overflow

Posted by jpluimers on 2017/09/06

A long time ago I asked this question how to filter name/value pairs under a registry key by name and value in PowerShell? – Stack Overflow [WayBack] but forgot to schedule a post about it.

It’s an interesting scenario, so lets start with a log of the outcome (it’s on my ix500 scanning VM which has Office15 a.k.a. Office 2013 installed) of this script:

$path = 'hkcu:\Software\Microsoft\Windows\CurrentVersion\Extensions'
$key = Get-Item $path
$key

$namevalues = $key | Select-Object -ExpandProperty Property | 
  ForEach-Object { 
    [PSCustomObject] @{ 
      Name = $_; 
      Value = $key.GetValue($_) 
    } 
  }
$namevalues | Format-Table

$matches = $namevalues | 
  Where-Object { 
    $_.Name -match '^xls' `
    -or $_.Value -match 'msaccess.exe$' 
  }
$matches | Format-Table

It outputs this:

Read the rest of this entry »

Posted in Development, PowerShell, Registry Files, Scripting, Software Development | Leave a Comment »

Some links to post helping to detect the compiler used to build an EXE file

Posted by jpluimers on 2017/09/06

These helped me into some past investigation:

–jeroen

Posted in Development, Software Development | Leave a Comment »

Delphi analog to C# ?? null-coalescing operator and Light Table like debugger evaluation

Posted by jpluimers on 2017/09/05

Interesting stuff:

via:

In more detail:

Read the rest of this entry »

Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | 3 Comments »

Windows – WorldTransform on the Printer’s Canvas can be a challenge…

Posted by jpluimers on 2017/09/05

// Don't use SetWorldTransform [WayBack] on Printer.
// Some drivers don't handle it correct
// We will only use ModifyWorldTransform [WayBack]
// Let Windows and Driver do the Job

Source: Hello, I use a component that do some nice things on the Printer’s Canvas…… [WayBack]

–jeroen

Posted in Delphi, Development, Software Development, Windows Development | 1 Comment »

Positive Technologies – learn and secure : Disabling Intel ME 11 via undocumented mode

Posted by jpluimers on 2017/09/04

Interesting: [WayBack/Archive.isPositive Technologies – learn and secure : Disabling Intel ME 11 via undocumented mode

Repository: ptresearch/unME11: Intel ME 11.x Firmware Images Unpacker

More archived links:

Via: [WayBack] The NSA is running Intel machines with ME off, and so can you: http://blog.koehntopp.info/index.php/2508-turning-off-the-intel-management-engine-me/ – Kristian Köhntopp – Google+

–jeroen

Posted in Power User, Security | Leave a Comment »

How to Easily Print a Large Image to Multiple Pages in Windows | Scottie’s Tech.Info

Posted by jpluimers on 2017/09/04

Many applications cannot not do that (Paint.net is one of them), but Paint can at least in Windows XP, 7, 8. and 8.1 (I need to check other Windows versions).:

In any case, here’s what you do:

  1. Open the image you’d like to print in Paint
  2. Select: Print -> Page Setup (Vista and 7), or File -> Page Setup (in XP)
  3. Under Scaling, select Fit to and change the setting to something like “3 by 2 page(s)”
  4. Click OK
  5. Print the image from Paint, and make sure to select “All Pages”

Source: How to Easily Print a Large Image to Multiple Pages in Windows | Scottie’s Tech.Info [WayBack]

Note the “3 by 2” has the order “horizontal by vertical”.

–jeroen

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows XP | 2 Comments »

How to change the Notepad++ editor’s font – via Notepad++ Community

Posted by jpluimers on 2017/09/04

Paraphrased Steps (thanks guy038); Screenshots below.

  1. Choose the menu option Settings  -> Style Configurator…
  2. In the Style configurator dialog, choose the Global Styles under Language
  3. Then, under Style, select the Default Style (this won’t work for Global Override unless you have that one override everything)
  4. Finally, in the Font Style area, you can select your favourite Font name and/or its Size and apearance (Bold, Italic, Underscore)
  5. Confirm with Save & Close when you like the new font settings.

The cool thing is that if you have a file open, you will immediately see the effects even before pressing Save & Close.

Source: No way to change editor’s font? | Notepad++ Community [WayBack]

–jeroen

Read the rest of this entry »

Posted in Notepad++, Power User, Text Editors, Windows | 1 Comment »

some notes on L2TP IPSEC on Mikrotik

Posted by jpluimers on 2017/09/01

For debugging purposes:

/log print where buffer=memory && (message~"l2tp" || message ~"L2TP"))

This will result in an answer like this:

13:43:59 l2tp,info first L2TP UDP packet received from 93.184.216.34
13:43:59 l2tp,ppp,info,account l2tp-jeroenp logged in, 192.168.73.239
13:43:59 l2tp,ppp,info <l2tp-l2tp-jeroenp>: authenticated
13:43:59 l2tp,ppp,info <l2tp-l2tp-jeroenp>: connecteda

Some links for when you cannot get connections to work:

Before digging deeper, check the output of settings like these:

/system logging add topics=ipsec

/ip ipsec policy group print
/ip ipsec peer print
/ip ipsec remote-peers print
/ip ipsec proposal print
/ip ipsec installed-sa print

It will give you answers like these (note that a Mac OS X 10.9.5 won’t connect with camelia encryption algorithms and not do better hashing than sha1):

> /ip ipsec policy group print
Flags: * - default
# NAME
0 * default
1 pfs-modp1024


> /ip ipsec peer print
Flags: X - disabled, D - dynamic
0 address=0.0.0.0/0 local-address=:: passive=no port=500 auth-method=pre-shared-key secret="someLoooooooongPasssssword" generate-policy=port-override policy-template-group=default exchange-mode=main-l2tp send-initial-contact=yes nat-traversal=yes
hash-algorithm=sha1 enc-algorithm=aes-256,aes-192,aes-128,3des dh-group=modp1024 lifetime=1d dpd-interval=2m dpd-maximum-failures=5


> /ip ipsec remote-peers print
0 local-address=37.153.243.243 port=4500 remote-address=93.184.216.34 port=15390 state=established side=responder established=22m16s

> /ip ipsec proposal print
Flags: X - disabled, * - default
0 * name="default" auth-algorithms=sha1 enc-algorithms=aes-128-cbc lifetime=30m pfs-group=modp1024

> /ip ipsec installed-sa print
Flags: A - AH, E - ESP
0 E spi=0x965F243 src-address=93.184.216.34:15390 dst-address=37.153.243.243:4500 state=mature auth-algorithm=sha1 enc-algorithm=aes-cbc auth-key="7f15b06179d0365cd8b7d8f046201703b2ba93f1" enc-key="ffc56f51397f60002d4bc3d7b95f14ede7eaa542" addtime=oct/17/2016 13:43:58
expires-in=36m34s add-lifetime=48m/1h current-bytes=24928 replay=128

1 E spi=0xE0A95C3 src-address=37.153.243.243:4500 dst-address=93.184.216.34:15390 state=mature auth-algorithm=sha1 enc-algorithm=aes-cbc auth-key="bd936b323131dea53d26791829640471c03154bc" enc-key="cb1a3e3b21d033c39390aa48b7efe64e835fc404" addtime=oct/17/2016 13:43:58
expires-in=36m34s add-lifetime=48m/1h current-bytes=3120 replay=128

In order to switch away from default as Policy Template Group, you will have to:

  1. add a new IPSec group (in /ip ipsec policy group)
  2. add a new IPSec proposal (in /ip ipsec proposal) with the same PFS group name as the policy group.
  3. add a new IPSec policy (in /ip ipsec policy group) with (under General) the same group name as the policy group. *and* (under Action) the same proposal name as the proposal.

Some links on hardening IPSEC with DH algorigthm:

Miscellaneous links:

–jeroen

Posted in Internet, MikroTik, Power User, routers | Leave a Comment »