TIP: Click on subject to list as thread! ANSI
echo: fmail_help
to: ALLEN PRUNTY
from: WILFRED VAN VELZEN
date: 2016-05-11 09:21:00
subject: Re: Need to insert a PKT

Hi Allen,

On 10 May 16 16:33, Allen Prunty wrote to All:
  about: "Need to insert a PKT Password in PX Generated Netmail Packet":

 AP> I have a little problem here that I am desperate for some help for.  I
 AP> use Winserver and Platinum Express for my Fido Tosser and Bink D/P
 AP> protocol to send my e-mail out.  PX will put .pkt passwords in all
 AP> echomail packets but when I have to generate a netmail packet it
 AP> leaves it unsecured without a .pkt password.

 AP> Is there a utility out there that can append a .pkt password to a non
 AP> secured .pkt file?  If someone could whip one up that works I would be
 AP> greatful.

 AP> My uplink that I route my mail through is not budging in his
 AP> requirement to have .pkt passwords on all netmail messages.  I've been
 AP> told that it's unlikely we will see any more Platinum Express upgrades
 AP> or developments.

 AP> I've tried (unsuccessfully) to get fastecho to pick up the .pkt file from
 AP> a generated inbound directory and move it to a .pkt passworded file.  All
 AP> I can get it to do is toss it to a .msg and leave it there.

If you want to use FMail or any other ("real") tosser as a "frontend", you
would have to use another node or pointnumber for PX as it's main node/point
number, so the frontend tosser can act as go between to PX and Binkd. But than,
why use PX at all. ;)

 AP> If someone has any other ideas on how I can get my netmail .pkt to
 AP> route and send properly I would be very thankful for your help.

It would be relatively easy to write a simple util that adds a password to a
"raw" .pkt file. I could do one in python in a few minutes, probably. ;)

In fact I did. Here it is:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/usr/python
#

import struct
import sys

password = struct.pack("8s", sys.argv[2])

pktfile = open(sys.argv[1], "r+b")

pktfile.seek(26)
pktfile.write(password)
pktfile.close()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you haven't got python. Just download and install the latest 2.7 version
from https://www.python.org/downloads/ first.

Then copy above lines (without the ~~~ lines) to a text file with extension
.py. (For instance "AddPktPassword.py")

And execute it on your .pkt files that need a password as:

 AddPktPassword.py 12345678.pkt PASSWORD

That should do the trick! ;)

Wilfred.

--- FMail-W32 1.69.21.177-B20160330
* Origin: point@work (2:280/464.112)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.