<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Anonymous Rechte]]></title><description><![CDATA[<p>Servus an alle,</p>
<p>kann man ohne Passwort und ohne Benutzername bei jedem beliebigen Server ein Liste der Dateien, die sich auf ihm befinden, erstellen? So weit bin ich mit dem Code. Hab ich da einen völlig falschen Ansatz oder fehlt da nur was oder stimmt was nicht?</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;wininet.h&gt; 
#include &lt;stdio.h&gt; 
#include &lt;stdlib.h&gt;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HINTERNET       hIntSession = NULL;
    HINTERNET       hFtpSession = NULL;
    HINTERNET       hFind       = NULL; 

    WIN32_FIND_DATA finddata;

    FILE *f;

    hIntSession = InternetOpen (&quot;FTP&quot;, INTERNET_OPEN_TYPE_PRECONFIG,
                                 NULL, NULL, 0) ;

    hFtpSession = InternetConnect (hIntSession, &quot;c-programmieren.com&quot;,
                                    INTERNET_DEFAULT_FTP_PORT,
                                    NULL, NULL,
                                    INTERNET_SERVICE_FTP,                                    
                                    INTERNET_FLAG_PASSIVE,                                    
                                    0) ;  

    f=fopen(&quot;Verzeichnis.txt&quot;,&quot;w+&quot;);
    strcpy(finddata.cFileName,&quot;&quot;);                               
    hFind = FtpFindFirstFile (hFtpSession, 0, &amp;finddata, 0, 0) ;
    do 
    {
               fprintf(f,&quot;%s\n&quot;,finddata.cFileName);
    }
    while (InternetFindNextFile (hFind, &amp;finddata)) ;
    InternetCloseHandle (hFind) ;
    fclose(f);

    InternetCloseHandle (hFtpSession) ;
    InternetCloseHandle (hIntSession) ;

    return 0;   
}
</code></pre>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188598/anonymous-rechte</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 14:40:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188598.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Aug 2007 08:21:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anonymous Rechte on Thu, 02 Aug 2007 08:21:57 GMT]]></title><description><![CDATA[<p>Servus an alle,</p>
<p>kann man ohne Passwort und ohne Benutzername bei jedem beliebigen Server ein Liste der Dateien, die sich auf ihm befinden, erstellen? So weit bin ich mit dem Code. Hab ich da einen völlig falschen Ansatz oder fehlt da nur was oder stimmt was nicht?</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;wininet.h&gt; 
#include &lt;stdio.h&gt; 
#include &lt;stdlib.h&gt;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HINTERNET       hIntSession = NULL;
    HINTERNET       hFtpSession = NULL;
    HINTERNET       hFind       = NULL; 

    WIN32_FIND_DATA finddata;

    FILE *f;

    hIntSession = InternetOpen (&quot;FTP&quot;, INTERNET_OPEN_TYPE_PRECONFIG,
                                 NULL, NULL, 0) ;

    hFtpSession = InternetConnect (hIntSession, &quot;c-programmieren.com&quot;,
                                    INTERNET_DEFAULT_FTP_PORT,
                                    NULL, NULL,
                                    INTERNET_SERVICE_FTP,                                    
                                    INTERNET_FLAG_PASSIVE,                                    
                                    0) ;  

    f=fopen(&quot;Verzeichnis.txt&quot;,&quot;w+&quot;);
    strcpy(finddata.cFileName,&quot;&quot;);                               
    hFind = FtpFindFirstFile (hFtpSession, 0, &amp;finddata, 0, 0) ;
    do 
    {
               fprintf(f,&quot;%s\n&quot;,finddata.cFileName);
    }
    while (InternetFindNextFile (hFind, &amp;finddata)) ;
    InternetCloseHandle (hFind) ;
    fclose(f);

    InternetCloseHandle (hFtpSession) ;
    InternetCloseHandle (hIntSession) ;

    return 0;   
}
</code></pre>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337074</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Thu, 02 Aug 2007 08:21:57 GMT</pubDate></item><item><title><![CDATA[Reply to Anonymous Rechte on Thu, 02 Aug 2007 08:26:39 GMT]]></title><description><![CDATA[<p>Felix15 schrieb:</p>
<blockquote>
<p>Servus an alle,</p>
<p>kann man ohne Passwort und ohne Benutzername bei jedem beliebigen Server ein Liste der Dateien, die sich auf ihm befinden, erstellen?</p>
</blockquote>
<p>Nö. Wenn du die nötigen Rechte nicht hast, geht es nicht. Wäre ja noch schöner, wenn es nicht Möglichkeit geben seinen Serverinhalt für sich zu behalten. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337079</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 02 Aug 2007 08:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to Anonymous Rechte on Thu, 02 Aug 2007 08:32:04 GMT]]></title><description><![CDATA[<p>Schade, trotzdem danke für deine Antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337085</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Thu, 02 Aug 2007 08:32:04 GMT</pubDate></item></channel></rss>