資源簡介
深入理解計算機系統實驗指導及答案

代碼片段和文件信息
/***************************************************************************
?*?Dr.?Evil‘s?Insidious?Bomb?Version?1.0
?*?Copyright?2002?Dr.?Evil?Incorporated.?All?rights?reserved.
?*
?*?LICENSE:
?*
?*?Dr.?Evil?Incorporated?(the?PERPETRATOR)?hereby?grants?you?(the
?*?VICTIM)?explicit?permission?to?use?this?bomb?(the?BOMB).??This?is?a
?*?time?limited?license?which?expires?on?the?death?of?the?VICTIM.
?*?The?PERPETRATOR?takes?no?responsibility?for?damage?frustration
?*?insanity?bug-eyes?carpal-tunnel?syndrome?loss?of?sleep?or?other
?*?harm?to?the?VICTIM.??Unless?the?PERPETRATOR?wants?to?take?credit
?*?that?is.??The?VICTIM?may?not?distribute?this?bomb?source?code?to
?*?any?enemies?of?the?PERPETRATOR.??No?VICTIM?may?debug
?*?reverse-engineer?run?“strings“?on?decompile?decrypt?or?use?any
?*?other?technique?to?gain?knowledge?of?and?defuse?the?BOMB.??BOMB
?*?proof?clothing?may?not?be?worn?when?handling?this?program.??The
?*?PERPETRATOR?will?not?apologize?for?the?PERPETRATOR‘s?poor?sense?of
?*?humor.??This?license?is?null?and?void?where?the?BOMB?is?prohibited
?*?by?law.
?***************************************************************************/
#include?
#include?“support.h“
#include?“phases.h“
/*?
?*?Note?to?self:?Remember?to?erase?this?file?so?my?victims?will?have?no
?*?idea?what?is?going?on?and?so?they?will?all?blow?up?in?a
?*?spectaculary?fiendish?explosion.?--?Dr.?Evil?
?*/
FILE?*infile;
int?main(int?argc?char?*argv[])
{
????char?*input;
????/*?Note?to?self:?remember?to?port?this?bomb?to?Windows?and?put?a?
?????*?fantastic?GUI?on?it.?*/
????/*?When?run?with?no?arguments?the?bomb?reads?its?input?lines?
?????*?from?standard?input.?*/
????if?(argc?==?1)?{??
infile?=?stdin;
????}?
????/*?When?run?with?one?argument??the?bomb?reads?from??
?????*?until?EOF?and?then?switches?to?standard?input.?Thus?as?you?
?????*?defuse?each?phase?you?can?add?its?defusing?string?to??and
?????*?avoid?having?to?retype?it.?*/
????else?if?(argc?==?2)?{
if?(!(infile?=?fopen(argv[1]?“r“)))?{
????printf(“%s:?Error:?Couldn‘t?open?%s\n“?argv[0]?argv[1]);
????exit(8);
}
????}
????/*?You?can‘t?call?the?bomb?with?more?than?1?command?line?argument.?*/
????else?{
printf(“Usage:?%s?[]\n“?argv[0]);
exit(8);
????}
????/*?Do?all?sorts?of?secret?stuff?that?makes?the?bomb?harder?to?defuse.?*/
????initialize_bomb();
????printf(“Welcome?to?my?fiendish?little?bomb.?You?have?6?phases?with\n“);
????printf(“which?to?blow?yourself?up.?Have?a?nice?day!\n“);
????/*?Hmm...??Six?phases?must?be?more?secure?than?one?phase!?*/
????input?=?read_line();?????????????/*?Get?input???????????????????*/
????phase_1(input);??????????????????/*?Run?the?phase???????????????*/
????phase_defused();?????????????????/*?Drat!??They?figured?it?out!
??????*?Let?me?know?how?they?did?it.?*/
????printf(“Phase?1?defused.?How?about?the?next?one?\n“);
????/*?The?second?phase?is?harder.??No?one?will?ever?figure?out
?????*?how?to?defuse?this...?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-12-25?20:45??深入理解計算機系統實驗指導及答案\
?????目錄???????????0??2012-12-25?20:45??深入理解計算機系統實驗指導及答案\bomb23\
?????文件???????20446??2012-10-27?16:09??深入理解計算機系統實驗指導及答案\bomb23\bomb
?????文件????????4049??2012-10-27?16:09??深入理解計算機系統實驗指導及答案\bomb23\bomb.c
?????文件???????67152??2012-10-27?21:41??深入理解計算機系統實驗指導及答案\bomb23\code
?????文件??????????23??2012-10-28?10:37??深入理解計算機系統實驗指導及答案\bomb23\ID
?????文件?????????159??2012-10-28?16:07??深入理解計算機系統實驗指導及答案\bomb23\README
?????文件??????????95??2012-10-28?10:35??深入理解計算機系統實驗指導及答案\bomb23\solution
?????文件????????1538??2012-11-01?18:59??深入理解計算機系統實驗指導及答案\bomb23\test.c
?????目錄???????????0??2012-12-25?20:45??深入理解計算機系統實驗指導及答案\bombs\
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb1.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb10.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb11.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb12.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb13.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb14.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb15.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb16.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb17.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb18.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb19.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb2.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb20.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb21.tar
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb22.tar
?????目錄???????????0??2012-12-25?20:45??深入理解計算機系統實驗指導及答案\bombs\bomb23\
?????文件???????30720??2008-10-07?18:49??深入理解計算機系統實驗指導及答案\bombs\bomb23.tar
?????文件???????20446??2008-10-07?18:48??深入理解計算機系統實驗指導及答案\bombs\bomb23\bomb
?????文件????????4049??2008-10-07?18:48??深入理解計算機系統實驗指導及答案\bombs\bomb23\bomb.c
?????文件??????????22??2008-10-07?18:48??深入理解計算機系統實驗指導及答案\bombs\bomb23\ID
?????文件??????????99??2008-10-07?18:48??深入理解計算機系統實驗指導及答案\bombs\bomb23\README
............此處省略129個文件信息
- 上一篇:邏輯函數公式化簡器
- 下一篇:CSS梅蘭商城項目實戰PSD
評論
共有 條評論