<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Lol I was waiting for that. But a attempted head(1) shot is worthwhile anyway !</div><div><br></div><div>I had some process's that actually took the headshot and exited. Always worth a shot.<br><br><div><div style="color: rgb(163, 163, 163); font-family: Ubuntu-Regular; font-size: 16px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);">-- </div><div style="color: rgb(163, 163, 163); font-family: Ubuntu-Regular; font-size: 16px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"> Jason Hellenthal</div><div style="color: rgb(163, 163, 163); font-family: Ubuntu-Regular; font-size: 16px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"> Voice: <span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-composition-fill-color: rgba(175, 192, 227, 0.235294);">95.30.17.6/616</span></div></div><div style="color: rgb(163, 163, 163); font-family: Ubuntu-Regular; font-size: 16px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"> JJH48-ARIN</div></div><div><br>On Mar 15, 2014, at 10:27, Dan Cross <<a href="mailto:crossd@gmail.com">crossd@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">On Fri, Mar 14, 2014 at 3:52 PM, Jason Hellenthal <span dir="ltr"><<a href="mailto:jhellenthal@dataix.net" target="_blank">jhellenthal@dataix.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>These should all be posix compliant sh(1) FreeBSD compatible. Not sure about other systems.</div><div>
<br></div><div># Kill or list some stopped processes</div><div>alias stopkill='kill `ps a -o stat,pid |awk '\''/^T /{print $2}'\''`'</div>
<div>alias stoplist='ps -p `ps a -o stat,pid |awk '\''/^T /{print $2}'\''` 2>/dev/null'</div><div><div><br></div><div># Kill or list some zombies</div><div>alias zomkill='kill `ps a -o stat,pid |awk '\''/^Z /{print $2}'\''`'</div>
</div></div></blockquote><div><br></div><div>This one doesn't make a lot of sense to me. You can't kill a zombie; zombies are by definition already dead, and just hanging around until their parent wait()'s for their exit status (or the parent dies, in which case they're inherited by init, which will wait for them unless your system is totally messed up). The only resource a zombie occupies is a slot in your process table.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>
<div>alias zomlist='ps -p `ps a -o stat,pid |awk '\''/^Z /{print $2}'\''` 2>/dev/null'</div></div><div><div><br></div><div># Need a new 10 char[] password ?</div><div>alias newpass='LANG=C tr -ucd [:alnum:][:punct:] </dev/urandom |tr -ud OZkl |tr -us [:alnum:][:punct:] |head -c 10 && echo'</div>
</div><div><br></div><div># cisco Systems like ping(1)</div><div>alias cping='sudo /sbin/ping -n -c 5 -t 2 -i 0.1 -s 72'<br></div><div><br></div><div># Sweep through sizes when ping'ing a host</div><div>alias sweep='ping -D -G 56 -h 7'<br>
</div><div><br></div><div># Need some specific permissions of files devices or directories ?</div><div>alias permof='stat -f "%p %Sp %Su %Sg %N"'<br></div><div><br></div><div># List major minor and type of a device ?</div>
<div>alias lsdev='stat -f "%nName:%t%N%nType:%t%HT%nMajor:%t%Hr%nMinor:%t%Lr%n%n"'<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Fri, Mar 14, 2014 at 11:29 AM, Marc Spitzer <span dir="ltr"><<a href="mailto:mspitzer@gmail.com" target="_blank">mspitzer@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="">We need to share our not so stupid unix tricks. Here is one:<div><br></div><div>ssh key access audit script:</div>
<div>for i in $(seq 254) ; do x="192.168.49.$i"; echo -n "$x: " ; ssh -o PasswordAuthentication=no -o NumberOfPasswordPrompts=0 $x hostname ;</div>
<div><br></div><div>this will give you one of 3 things:</div><div>1: hostname</div><div>2: failed login</div><div>3: unreachable error</div><div><br></div><div>Easy way to find out where your keys work, who's next?<span><font color="#888888"><br>
</font></span></div></div><span><font color="#888888"><div><div><br></div><div>Marc</div><span class="HOEnZb"><font color="#888888">-- <br>Freedom is nothing but a chance to be better.<br>--Albert Camus<br><br>The inherent vice of capitalism is the unequal sharing of blessings; the inherent virtue of socialism is the equal sharing of miseries. <br>
-- Winston Churchill<br><br>Do the arithmetic or be doomed to talk nonsense.<br>--John McCarthy
</font></span></div></font></span></div><div class="">
<br>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br>
<a href="http://www.nycbug.org/mailman/listinfo/talk" target="_blank">http://www.nycbug.org/mailman/listinfo/talk</a><br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org">talk@lists.nycbug.org</a><br>
<a href="http://www.nycbug.org/mailman/listinfo/talk" target="_blank">http://www.nycbug.org/mailman/listinfo/talk</a><br></blockquote></div><br></div></div>
</div></blockquote></body></html>