From 38ef8122700cb58186e0c031ba1d23a685ffecb8 Mon Sep 17 00:00:00 2001 From: b Date: Mon, 30 Dec 2013 18:08:36 +0000 Subject: [PATCH] Interface! The results are for me only! git-svn-id: svn://botcastle1b/npb@18 0d794883-4e4e-4f65-aa7a-0e7f5947bab5 --- makefile | 2 +- npb | Bin 15624 -> 15624 bytes npb.cpp | 13 ++++++----- npbd | Bin 6202 -> 25739 bytes npbd.cpp | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 72 insertions(+), 7 deletions(-) diff --git a/makefile b/makefile index 255abba..34ab114 100644 --- a/makefile +++ b/makefile @@ -9,4 +9,4 @@ npb: npb.cpp makefile $(CC) $(CF) $(LF) -o npb npb.cpp npbd: npb npbd.cpp makefile - $(CC) $(CF) -o npbd npbd.cpp + $(CC) $(CF) -o npbd npbd.cpp $(LF2) diff --git a/npb b/npb index 8b76126f9800ada2448d80b53c697e3fe3079a96..f39f1b12192061571535fe2eca6675036e90e46a 100755 GIT binary patch delta 571 zcmeCE>ZsaK!6@>uxaDNZ!ku^5{wwmBaQkOiUFUtb%{`2Kii|dsXDdmo+UPJaFfdJI z;4oukU|_U)3+Ayfu(0?8S)7bLK$0GhzZLkPf!-AUxBRUJ4nl^DM0cIP?6g#7LErX5m_dfQ%=DQ`VEwK z0Lp`$at7)YkPDz}pa>76CP=R;qbtx4AfxuqX5o+k`Ntb*94}O|9vWf{e1RY-lUX1= ztjs+NSvdGMfY>mR2_O-m077I6P=vpbfzh-DqNfGK&&=~+U^Ih@%mC?$1Ie00MP`CT z96&Z%Ktw{AXF;?@Ffdv|EuRAsiA0Dj0BPF?G6<$-2}tBHvd9XM$XSqx)#h(1{)~(^ Ko88n7i2(rHiEOR_ delta 571 zcmeCE>ZsaK!6`KYDv@3uIeMW#m`-ne;Pjbc2pxrdQYkX5rxIXW=LS ziIf8cIIKbDq(Rkk`Sh@G==ZU3aAz_w7G{7A$l;0r3QB?mvltkQA%Y;1lQ9@%%8beJ z%F<#pU?$`PO%I(2F=6rK3Cbe%OOdsF2WdGz1xS7YDsr2}!tnqkBFhAG%5j)Mzk%`& zKzWc;PC}gmasiYL6yagi1nE^`bOrhWWYpf-EF2Ob|9At9F#tXQX!-yE diff --git a/npb.cpp b/npb.cpp index 10f41f0..a08e577 100644 --- a/npb.cpp +++ b/npb.cpp @@ -1,8 +1,11 @@ - // // It's NewpixbOTTification Time! - // // Take a picture and add a newpixbot to it! - // // Requires Dev Image Library, on Pentium III libdevil must be recompiled with --disable-ssl2 --disable-ssl3 - // // -// // ~~bicyclesonthemoon + // //It's NewpixbOTTification Time! + // // Take a picture and add a newpixbot to it! + // // + // // Requires Dev Image Library, +// // //on Pentium III libdevil must be + // // recompiled with --disable-ssl2 --disable-ssl3 + // // + // // ~~bicyclesonthemoon #define INPIX_MUSTARD 1 #define OUTPIX_MUSTARD 2 diff --git a/npbd b/npbd index 947d9d0317cdec38f45bd258137ab10a68106dde..acaa15dc3a8ad8f720c0861090e3bbcc8e6ae730 100755 GIT binary patch literal 25739 zcmbt+3w%_?z5hA8Ct+Oz8+jQu>IwltAP-*h2pAyCLkS=xh?ThHvB{?7W%eutD;nM1 z%J#S#>*M0><3hEz_tsmvtxajMGzd+kwYL;$ODnb1BHcBpD2j+^{@?G+IoZwD*3bR? z4@_phGr#%GZ+`Qe=Q%s~dR8n^RaLPbn_^dpS|8FJGvIGrDN|-BZpEQYR3<3nluSf1 zZAJ%Z;6w&w%0Qe3XJ;DljQfxdHxihRY2-~O9_EExTcRj*%&%n2^m5?x!GT>z>o30d?&PrSThF<&hjf(R0&ou{KF4E|%^jnY) z_z#c8zo4<9x}dRkYGXrlusuJ}l0Qx6g=nH~OIKEiyp)r9u7D%&QE=1^)1O?BH*?06 z<;PkpPyG6qSr?||H%|QBc%;pQyB;nd&U!921DBcpRQOlHIpMB@8wbbdTDWWAhQX27 zM7SYvY^$r`_>6@c4Oc*bhcZovn*!&CqaG%~@uBP!;8>4;^+461`wUH?pbkV^r^LC; zumk>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reE(K<71?K^^b*W_;Yjj|zzBfm6*G$Gj0T_hu)rDC<1_H~!5&uWD>foy5V*mG8-ew^ zk_UEPl^Gwn{|vnSbRpOCXW*^nIPhtg|Leedz75RxIbfaGANM{cz6j&1&UzW5TKo~% z-CxF0J>Lc*-iN@tecntws8F{@%=n_$&%pXk2iEHo!06`y^Lqt%dNszk5?Jpy;s#)y z0#MpZa0HmoFP;NLrZ;;F8f!v4)E;V%Gw&N*+@o=UMESiirq z{x)FVFW`#yu)88zJ7?#+x`GjW^xD|mVYany?Zj8Mk#BLPoiro-8kZCL3!AIRG^1&= zJCP2D5@ys+XLDvK-z#th&Lk|`iUyZ1U%UV{KY(QNGOn)HCa%lbKA|q-(R?!52NxGI zd50fGExyv2=DLo?O)X~2=C%AbD2L$a>)YC!8r#hFb?dgabef%wO>He?jH)X-xi{1;H9KO+DD diff --git a/npbd.cpp b/npbd.cpp index 920b154..831d80b 100644 --- a/npbd.cpp +++ b/npbd.cpp @@ -1,6 +1,68 @@ + // //Download images and add + // // Newpixbots to them! + // // + // // Requires cgilib +// // //line 146 of cgi.h + // // must be changed + // // from "extern }" + // // to "}" +// // // + // // ~~bicyclesonthemoon + +#include #include +#include +#include + +#define WGET_PATH "/usr/bin/wget" +#define NPB_PATH "./npb" + +int main (int argc, char *argv[]); int main (int argc, char *argv[]) { - printf("Content-type: text/html\n\nIt's NewpixbOTTification time!

It's NewpixbOTTification time!\n"); + FILE *pix; + char url[1024]; + char path[256]; + //char cmd[1024]; + s_cgi *cgi; + int t; + pid_t sub; + + cgi=cgiInit(); + sprintf(url,"%s",cgiGetValue(cgi,"inpix")); + sprintf(path,"/var/tmp/%lu",(unsigned long)getpid()); + + + //Why is there no spawnl() in linux? + sub=fork(); + if(sub==0) + { + t=execl(WGET_PATH,WGET_PATH,"-q","-O",path,url,(char *)0); + return t; + } + waitpid(sub,&t,0); + if(t)return t; + + sub=fork(); + if(sub==0) + { + t=execl(NPB_PATH,NPB_PATH,path,path,"q",(char *)0); + return t; + } + waitpid(sub,&t,0); + + printf("Content-type: text/html\n\n"); + printf("It's NewpixbOTTification time!"); + printf("

It's NewpixbOTTification time!

"); + printf("%s
",path); + printf("%s
",url); + printf("%d
",t); + printf("%lu
",(unsigned long)sub); + printf("\n"); + + + + //npbpix=fopen("/var/tmp/test","wb"); + //fclose(npbpix); return 0; } \ No newline at end of file -- 2.30.2