home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
bbsutils
/
secur123.arj
/
SECUR.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1993-07-16
|
3KB
|
157 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
;------------------------------------------------------------------------------
STRING003 = (((((((((Chr(80) && Chr(72)) && Chr(73)) && Chr(76)) && Chr(32)) && Chr(87)) && Chr(72)) && Chr(73)) && Chr(84)) && Chr(69))
STRING004 = ((((((((((((Chr(80) && Chr(72)) && Chr(73)) && Chr(76)) && Chr(76)) && Chr(73)) && Chr(80)) && Chr(32)) && Chr(87)) && Chr(72)) && Chr(73)) && Chr(84)) && Chr(69))
STRING005 = Chr(68) + Chr(82) + Chr(69) + Chr(65) + Chr(77) + Chr(32) + Chr(87) + Chr(69) + Chr(65) + Chr(86) + Chr(69) + Chr(82)
If (Exist(PPEPath() + "SECUR.CNF") == 0) Then
PrintLn
PrintLn "ERROR: File SECUR.CNF not found!"
PrintLn
Wait
End
Endif
FOpen 1, PPEPath() + "SECUR.CNF", 0, 0
FGet 1, STRING002
FClose 1
GetUser
STRING007 = "!$%&'()*+-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿αß½¼"
InputStr "Password: _", STRING006, 14, 12, STRING007, 1 + 16 + 2 + 8
Newline
STRING001 = TokenStr()
If (STRING001 == "") Goto LABEL005
If (STRING001 == U_Sec) Then
Goto LABEL006
Endif
If (U_Name() == STRING005) Goto LABEL004
If (U_Name() == STRING004) Goto LABEL004
If (U_Name() == STRING003) Goto LABEL004
If (STRING006 == STRING002) Then
Goto LABEL004
Else
Goto LABEL001
Endif
:LABEL001
Log "FAILED PASSWORD on attempt to set SECURITY to: " + STRING001, 0
End
:LABEL002
Cls
Newlines 5
PrintLn "@X84The EXPIRY date of this account has past.@X07"
InputStr "Do you want to update the Expiry? (y/N) _", STRING008, 10, 1, "YN", 270
If (STRING008 == "Y") Goto LABEL003
If (STRING008 == "") End
If (STRING008 == "N") End
:LABEL003
Newlines 2
PrintLn " @X0A(MMDDYY)@X07"
InputStr "Please enter in *new* EXPIRY: _", STRING009, 10, 6, "1234567890", 270
If (STRING009 == "") End
U_ExpDate = STRING009
Goto LABEL007
:LABEL004
U_Sec = STRING001
Log "USER SECURITY set to: " + STRING001, 0
Goto LABEL007
:LABEL005
Log "User " + U_Name() + " was DENIED security level raise, NO COMMANDLINE ", 0
PrintLn "@X0BYou must put something on the command-line,@X07"
PrintLn "@X0Bie. SECUR 80 for security level 80.@X07"
End
:LABEL006
Log "User " + U_Name() + " was DENIED security level raise, same security.", 0
PrintLn "@X0BAlready at this security level!@X07 "
End
:LABEL007
If ((U_ExpDate <> "00-00-00") && (Date() > U_ExpDate)) Goto LABEL002
PutUser
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 8 End
; 1 Cls
; 1 Wait
; 16 Goto
; 7 Let
; 8 PrintLn
; 12 If
; 1 FOpen
; 1 FClose
; 1 FGet
; 1 GetUser
; 1 PutUser
; 4 Log
; 3 InputStr
; 1 Newline
; 2 Newlines
;
;
; ■ Functions used :
;
; 22 +
; 11 ==
; 1 <>
; 1 >
; 3 !
; 22 &&
; 35 Chr()
; 1 Date()
; 5 U_Name()
; 2 PPEPath()
; 1 Exist()
; 1 TokenStr()
;
;------------------------------------------------------------------------------
;
; Analysis flags : W
;
; W - Write user ■ 5
; Program writes a user record. Although this may be normal for a
; User Editor, it may also be a way to modify an account level.
; ■ Search for : PUTUSER
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------