Add sekrit code to web shell.

This commit is contained in:
C. Guy Yarvin 2014-04-23 12:26:22 -07:00
parent 7329ea5343
commit cac95f440a
4 changed files with 17 additions and 4 deletions

View File

@ -1670,6 +1670,8 @@
=+ luw=(rick mar our law.saf.u.gys)
?. &(?=(^ muc) ?=(^ luw)) ~
[~ `buck`[u.muc u.luw]]
?: ?=([%code ~] tyl)
[~ (end 6 1 (shaf %code (shax sec:ex:q:sen:u.gys)))]
?: ?=([%tick @ ~] tyl)
=+ hur=(slaw %p i.t.tyl)
?~ hur ~

View File

@ -911,6 +911,11 @@
?: ?=(| -.mud) +>.$
+>.$(cah.sef (~(put by cah.sef) p.u.q.ank p.mud))
::
++ lass :: load secret
^- @ta
%^ rsh 3 1
(scot %p (,@ (need (sky %a (scot %p our) %code (scot %da now) ~))))
::
++ lend :: load directory node
|= pax=path
^- arch
@ -1413,10 +1418,8 @@
[~ pip(pez [%fin %ham ham])]
::
%log
?. =(%foobar r.som.pip)
~& [%login-bad som.pip]
?. =(lass r.som.pip)
$(som.pip [%lon [~ p.som.pip] q.som.pip])
~& [%login-good som.pip]
%= $
som.pip [%red q.som.pip]
aut.ced (~(put ju aut.ced) %$ (scot %p p.som.pip))

View File

@ -54,7 +54,6 @@
++ poll :: current subchange
|+ tea=path ::
_@ud ::
::
++ peek :: view
|+ $: kyl=keel :: inspecting agent
asp=?(%view %diff) :: desired aspect

9
main/bin/secret.hoon Normal file
View File

@ -0,0 +1,9 @@
!:
:: /=main=/bin/secret/hoon
::
=> .(-< `who=@p`-<)
|= [est=time *]
|= ~
^- bowl
:_ ~ :_ ~
[%la %leaf (scow %p (,@p .^(%a (scot %p who) %code (scot %da est) ~)))]