SlideShare a Scribd company logo
#!/bin/sh -h
trap "" 1 2 3 4 5 6 7 8 9
OUT="/usr/tmp/.$LOGNAME.ps.`date '+%m%d%H%M%S'`"
echo "@LOGIN `date '+%m/%d %H:%M:%S'` $$ `tty` `id`" > $OUT
while true
do
echo "# c"
read CMD
if test "X$CMD" != "X"
then
echo "`date '+%m/%d %H:%M:%S'` `pwd`: $CMD" >> $OUT
set X $CMD
if test "$2" = "exit" -o "$2" = "break" -o "$2" = "logout"
then
echo "@LOGOUT `date '+%m/%d %H:%M:%S'` $$ `tty` `id`" >> $OUT
exit 0
fi
TYP="`type $2`"
set X $TYP a b c d e f g h
if test "$6" = "builtin" -a "$2" != "set"
then
if test "$2" = "cd" -a "$2" != "$CMD"
then
set X $CMD
if test -d "$3"
then
$CMD
else
($CMD)
fi
else
$CMD
fi
else
if test "$4" = "/usr/bin/sh"
-o "$5" = "(/usr/bin/sh)"
-o
"/usr/bin/sh"
-o 
"$4" = "/usr/bin/csh"
-o "$5" = "(/usr/bin/csh)" -o
"/usr/bin/csh"
-o 
"$4" = "/usr/bin/ksh"
-o "$5" = "(/usr/bin/ksh)" -o
"/usr/bin/ksh"
-o 
"$4" = "/usr/bin/jsh"
-o "$5" = "(/usr/bin/jsh)" -o
"/usr/bin/jsh"
-o 
"$4" = "/usr/bin/su"
-o "$5" = "(/usr/bin/su)"
-o
"/usr/bin/su"
then
echo "Access denied, sorry."
else
sh -che "$CMD"
fi
fi
fi
done

"$8" =
"$8" =
"$8" =
"$8" =
"$8" =

More Related Content

What's hot

hotel managment
hotel managmenthotel managment
hotel managment
Melk Biks
 
Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]
Mozammel Haque
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
恵寿 東
 
Yahoo! JAPANとKotlin
Yahoo! JAPANとKotlinYahoo! JAPANとKotlin
Yahoo! JAPANとKotlin
Shoichi Matsuda
 
Codigos
CodigosCodigos
Codigos
Manuel Valero
 
wget.pl
wget.plwget.pl
6. hello popescu 2
6. hello popescu 26. hello popescu 2
6. hello popescu 2
Razvan Raducanu, PhD
 
Perl Fitxers i Directoris
Perl Fitxers i DirectorisPerl Fitxers i Directoris
Perl Fitxers i Directoris
frankiejol
 
Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)
garux
 
Php
PhpPhp
Itsecteam shell
Itsecteam shellItsecteam shell
Itsecteam shell
ady36
 
Area de un triangulo
Area de un trianguloArea de un triangulo
Area de un triangulo
Ivan Ramirez Iglesias
 
104 alhumazah
104 alhumazah104 alhumazah
104 alhumazah
mustafa002
 
Consulta de notas
Consulta de notasConsulta de notas
Consulta de notas
Luis Gonzalez
 
Verificacion de notas
Verificacion de notasVerificacion de notas
Verificacion de notas
Luis Gonzalez
 
linieaire regressie
linieaire regressielinieaire regressie
linieaire regressie
Mwalima Peltenburg
 
subversion hacks (create a commit template)
subversion hacks (create a commit template)subversion hacks (create a commit template)
subversion hacks (create a commit template)
Hirohito Kato
 
Node.js - Demnächst auf einem Server in Ihrer Nähe
Node.js - Demnächst auf einem Server in Ihrer NäheNode.js - Demnächst auf einem Server in Ihrer Nähe
Node.js - Demnächst auf einem Server in Ihrer Nähe
Ralph Winzinger
 
Random. Kinda.
Random. Kinda.Random. Kinda.
Random. Kinda.
awwaiid
 
Nette framework (WebElement #27 lightning talk)
Nette framework (WebElement #27 lightning talk)Nette framework (WebElement #27 lightning talk)
Nette framework (WebElement #27 lightning talk)
Adam Štipák
 

What's hot (20)

hotel managment
hotel managmenthotel managment
hotel managment
 
Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]Beginning web programming with PHP [PHP 101-02]
Beginning web programming with PHP [PHP 101-02]
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
 
Yahoo! JAPANとKotlin
Yahoo! JAPANとKotlinYahoo! JAPANとKotlin
Yahoo! JAPANとKotlin
 
Codigos
CodigosCodigos
Codigos
 
wget.pl
wget.plwget.pl
wget.pl
 
6. hello popescu 2
6. hello popescu 26. hello popescu 2
6. hello popescu 2
 
Perl Fitxers i Directoris
Perl Fitxers i DirectorisPerl Fitxers i Directoris
Perl Fitxers i Directoris
 
Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)Communities - Perl edition (RioJS)
Communities - Perl edition (RioJS)
 
Php
PhpPhp
Php
 
Itsecteam shell
Itsecteam shellItsecteam shell
Itsecteam shell
 
Area de un triangulo
Area de un trianguloArea de un triangulo
Area de un triangulo
 
104 alhumazah
104 alhumazah104 alhumazah
104 alhumazah
 
Consulta de notas
Consulta de notasConsulta de notas
Consulta de notas
 
Verificacion de notas
Verificacion de notasVerificacion de notas
Verificacion de notas
 
linieaire regressie
linieaire regressielinieaire regressie
linieaire regressie
 
subversion hacks (create a commit template)
subversion hacks (create a commit template)subversion hacks (create a commit template)
subversion hacks (create a commit template)
 
Node.js - Demnächst auf einem Server in Ihrer Nähe
Node.js - Demnächst auf einem Server in Ihrer NäheNode.js - Demnächst auf einem Server in Ihrer Nähe
Node.js - Demnächst auf einem Server in Ihrer Nähe
 
Random. Kinda.
Random. Kinda.Random. Kinda.
Random. Kinda.
 
Nette framework (WebElement #27 lightning talk)
Nette framework (WebElement #27 lightning talk)Nette framework (WebElement #27 lightning talk)
Nette framework (WebElement #27 lightning talk)
 

Similar to Bloqueador cmd-sh

Pop3ck sh
Pop3ck shPop3ck sh
Pop3ck sh
Ben Pope
 
คู่มือการใช้โปรแกรม Pharmacy MTM
คู่มือการใช้โปรแกรม Pharmacy MTMคู่มือการใช้โปรแกรม Pharmacy MTM
คู่มือการใช้โปรแกรม Pharmacy MTM
Kris Phueakkham
 
Vyg monitor
Vyg monitorVyg monitor
Vyg monitor
Anar Godjaev
 
Ellzey 5611 module 3
Ellzey 5611 module 3Ellzey 5611 module 3
Ellzey 5611 module 3
cellzey
 
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks  -  Baltimore Perl mongersPerl Bag of Tricks  -  Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
brian d foy
 
Bag of tricks
Bag of tricksBag of tricks
Bag of tricks
brian d foy
 
Speeding up Red Team engagements with carnivorall
Speeding up Red Team engagements with carnivorallSpeeding up Red Team engagements with carnivorall
Speeding up Red Team engagements with carnivorall
Nullbyte Security Conference
 
Nop2
Nop2Nop2
De webmaster is niet meer (beknopte versie)
De webmaster is niet meer  (beknopte versie)De webmaster is niet meer  (beknopte versie)
De webmaster is niet meer (beknopte versie)
Peter Voets
 
5th Sem SS lab progs
5th Sem SS lab progs5th Sem SS lab progs
5th Sem SS lab progs
Nagarjun Pakka Kannadiga
 
Mundos de fantasía, Blaubloom
Mundos de fantasía, BlaubloomMundos de fantasía, Blaubloom
Mundos de fantasía, Blaubloom
MASmedia
 
03 tk2123 - pemrograman shell-2
03   tk2123 - pemrograman shell-203   tk2123 - pemrograman shell-2
03 tk2123 - pemrograman shell-2
Setia Juli Irzal Ismail
 
distill
distilldistill
Ipad gump
Ipad gumpIpad gump
Ipad gump
Tuany Beiram
 
Presentation1
Presentation1Presentation1
Presentation1
daisy_arcangel
 
Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of Ruby
Tom Crinson
 
Les antigènes de P .Falciparum
Les antigènes de P .FalciparumLes antigènes de P .Falciparum
Les antigènes de P .Falciparum
Institut Pasteur de Madagascar
 
16 intégrales curvilignes, formes différentielles
16 intégrales curvilignes, formes différentielles16 intégrales curvilignes, formes différentielles
16 intégrales curvilignes, formes différentielles
Achraf Ourti
 
32 shell-programming
32 shell-programming32 shell-programming
32 shell-programming
kayalkarnan
 
Classification des différents faciès et strates épidémiologiques du paludisme
Classification des différents faciès et strates épidémiologiques du paludismeClassification des différents faciès et strates épidémiologiques du paludisme
Classification des différents faciès et strates épidémiologiques du paludisme
Institut Pasteur de Madagascar
 

Similar to Bloqueador cmd-sh (20)

Pop3ck sh
Pop3ck shPop3ck sh
Pop3ck sh
 
คู่มือการใช้โปรแกรม Pharmacy MTM
คู่มือการใช้โปรแกรม Pharmacy MTMคู่มือการใช้โปรแกรม Pharmacy MTM
คู่มือการใช้โปรแกรม Pharmacy MTM
 
Vyg monitor
Vyg monitorVyg monitor
Vyg monitor
 
Ellzey 5611 module 3
Ellzey 5611 module 3Ellzey 5611 module 3
Ellzey 5611 module 3
 
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks  -  Baltimore Perl mongersPerl Bag of Tricks  -  Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
 
Bag of tricks
Bag of tricksBag of tricks
Bag of tricks
 
Speeding up Red Team engagements with carnivorall
Speeding up Red Team engagements with carnivorallSpeeding up Red Team engagements with carnivorall
Speeding up Red Team engagements with carnivorall
 
Nop2
Nop2Nop2
Nop2
 
De webmaster is niet meer (beknopte versie)
De webmaster is niet meer  (beknopte versie)De webmaster is niet meer  (beknopte versie)
De webmaster is niet meer (beknopte versie)
 
5th Sem SS lab progs
5th Sem SS lab progs5th Sem SS lab progs
5th Sem SS lab progs
 
Mundos de fantasía, Blaubloom
Mundos de fantasía, BlaubloomMundos de fantasía, Blaubloom
Mundos de fantasía, Blaubloom
 
03 tk2123 - pemrograman shell-2
03   tk2123 - pemrograman shell-203   tk2123 - pemrograman shell-2
03 tk2123 - pemrograman shell-2
 
distill
distilldistill
distill
 
Ipad gump
Ipad gumpIpad gump
Ipad gump
 
Presentation1
Presentation1Presentation1
Presentation1
 
Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of Ruby
 
Les antigènes de P .Falciparum
Les antigènes de P .FalciparumLes antigènes de P .Falciparum
Les antigènes de P .Falciparum
 
16 intégrales curvilignes, formes différentielles
16 intégrales curvilignes, formes différentielles16 intégrales curvilignes, formes différentielles
16 intégrales curvilignes, formes différentielles
 
32 shell-programming
32 shell-programming32 shell-programming
32 shell-programming
 
Classification des différents faciès et strates épidémiologiques du paludisme
Classification des différents faciès et strates épidémiologiques du paludismeClassification des différents faciès et strates épidémiologiques du paludisme
Classification des différents faciès et strates épidémiologiques du paludisme
 

Recently uploaded

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 

Recently uploaded (20)

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 

Bloqueador cmd-sh

  • 1. #!/bin/sh -h trap "" 1 2 3 4 5 6 7 8 9 OUT="/usr/tmp/.$LOGNAME.ps.`date '+%m%d%H%M%S'`" echo "@LOGIN `date '+%m/%d %H:%M:%S'` $$ `tty` `id`" > $OUT while true do echo "# c" read CMD if test "X$CMD" != "X" then echo "`date '+%m/%d %H:%M:%S'` `pwd`: $CMD" >> $OUT set X $CMD if test "$2" = "exit" -o "$2" = "break" -o "$2" = "logout" then echo "@LOGOUT `date '+%m/%d %H:%M:%S'` $$ `tty` `id`" >> $OUT exit 0 fi TYP="`type $2`" set X $TYP a b c d e f g h if test "$6" = "builtin" -a "$2" != "set" then if test "$2" = "cd" -a "$2" != "$CMD" then set X $CMD if test -d "$3" then $CMD else ($CMD) fi else $CMD fi else if test "$4" = "/usr/bin/sh" -o "$5" = "(/usr/bin/sh)" -o "/usr/bin/sh" -o "$4" = "/usr/bin/csh" -o "$5" = "(/usr/bin/csh)" -o "/usr/bin/csh" -o "$4" = "/usr/bin/ksh" -o "$5" = "(/usr/bin/ksh)" -o "/usr/bin/ksh" -o "$4" = "/usr/bin/jsh" -o "$5" = "(/usr/bin/jsh)" -o "/usr/bin/jsh" -o "$4" = "/usr/bin/su" -o "$5" = "(/usr/bin/su)" -o "/usr/bin/su" then echo "Access denied, sorry." else sh -che "$CMD" fi fi fi done "$8" = "$8" = "$8" = "$8" = "$8" =