Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #194946

Re: encryption

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: encryption
Date 2018-04-21 22:50 +0200
Message-ID <vH7Ch-2pF-1@gated-at.bofh.it> (permalink)
References <vGK2Z-3Dx-1@gated-at.bofh.it> <vH3Il-8kQ-5@gated-at.bofh.it> <vH5h7-113-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/21/18 11:14, Brian wrote:
> On Sat 21 Apr 2018 at 11:36:05 -0500, David Wright wrote:
>> If so, then won't the password be revealed by ps while eval is
>> evaluating it?
> 
> I do not know the most efficacious way to see the ps output in real time
> as eval runs. With a bit of trial and error (scrypt is slow enough to
> switch to another console and use ps) I captured
> 
> 23266 pts/7    R+     0:00 mpw -q -F     -M                                       -t     railcard
> 
> in its output. mpw is the basic command executed by myscript. Switches
> are shown but not parameters. -M is the very important one. The gap
> would be occupied by the passphrase.
> 
> Is it possible that ps output does not show parameters to switches?

The -f option for ps(1) appears to display options and option values:

2018-04-21 13:47:04 dpchrist@vstretch ~/sandbox/sh
$ cat /etc/debian_version
9.4

2018-04-21 13:47:06 dpchrist@vstretch ~/sandbox/sh
$ uname -a
Linux vstretch 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) 
x86_64 GNU/Linux

2018-04-21 13:47:09 dpchrist@vstretch ~/sandbox/sh
$ cat ps-option-values
perl -e '$| = 1; print "hello\n"; sleep 3; print "world!\n"' &
ps $@

2018-04-21 13:47:11 dpchrist@vstretch ~/sandbox/sh
$ dash ps-option-values -f
hello
UID        PID  PPID  C STIME TTY          TIME CMD
dpchrist  1681  1268  0 11:42 pts/1    00:00:00 -bash
dpchrist  3276  1681  0 13:47 pts/1    00:00:00 dash ps-option-values -f
dpchrist  3277  3276  0 13:47 pts/1    00:00:00 perl -e $| = 1; print 
"hello\n"; sleep 3; print "world!\n"
dpchrist  3278  3276  0 13:47 pts/1    00:00:00 ps -f

2018-04-21 13:47:13 dpchrist@vstretch ~/sandbox/sh
$ world!


2018-04-21 13:47:17 dpchrist@vstretch ~/sandbox/sh
$ bash ps-option-values -f
hello
UID        PID  PPID  C STIME TTY          TIME CMD
dpchrist  1681  1268  0 11:42 pts/1    00:00:00 -bash
dpchrist  3285  1681  0 13:47 pts/1    00:00:00 bash ps-option-values -f
dpchrist  3286  3285  0 13:47 pts/1    00:00:00 perl -e $| = 1; print 
"hello\n"; sleep 3; print "world!\n"
dpchrist  3287  3285  0 13:47 pts/1    00:00:00 ps -f

2018-04-21 13:47:20 dpchrist@vstretch ~/sandbox/sh
$ world!


David

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

encryption Brian <ad44@cityscape.co.uk> - 2018-04-20 21:40 +0200
  Re: encryption Greg Wooledge <wooledg@eeg.ccf.org> - 2018-04-20 22:00 +0200
  Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 02:10 +0200
    Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-21 17:30 +0200
      Re: encryption john doe <johndoe65534@mail.com> - 2018-04-21 17:40 +0200
        Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 22:00 +0200
          Re: encryption john doe <johndoe65534@mail.com> - 2018-04-22 08:30 +0200
            Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-22 20:30 +0200
      Re: encryption Glenn English <ghe2001@gmail.com> - 2018-04-21 19:00 +0200
        Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 22:30 +0200
      Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 21:50 +0200
        Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-22 18:20 +0200
          Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-22 18:50 +0200
            Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-23 10:50 +0200
              Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-23 13:20 +0200
                Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-24 20:50 +0200
  Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-21 18:40 +0200
    Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-21 20:20 +0200
      Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-21 21:00 +0200
        Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-21 21:20 +0200
          Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 23:30 +0200
          Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-22 04:30 +0200
            Re: encryption Curt <curty@free.fr> - 2018-04-22 11:20 +0200
              Re: encryption Reco <recoverym4n@gmail.com> - 2018-04-22 11:50 +0200
                Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-22 19:10 +0200
      Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 22:50 +0200
    Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-21 22:10 +0200
      Re: encryption David Wright <deblis@lionunicorn.co.uk> - 2018-04-22 04:00 +0200
        Re: encryption Brian <ad44@cityscape.co.uk> - 2018-04-22 17:40 +0200
          Re: encryption Richard Hector <richard@walnut.gen.nz> - 2018-04-23 08:00 +0200
            Re: encryption Andrew McGlashan <andrew.mcglashan@affinityvision.com.au> - 2018-04-23 09:00 +0200
        Re: encryption David Christensen <dpchrist@holgerdanske.com> - 2018-04-22 20:10 +0200

csiph-web