Tag Archives: file
Invoking UAC for Privilege Escalation in batch file

@echo off at >nul if %errorlevel% == 0 goto run_elevated   echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%getUACpriv.vbs" echo UAC.ShellExecute…

A .bin file is missing when updating AVG

> Open AVG > Open Options > Open Advanced settings > Navigate to Update option and expand it > Select…

Logging in Python

Logging module defines functions and classes which implement a flexible event logging system for applications and libraries. The key benefit…

Check if file is in use in C#

There is no build-in function in c# to check if a file is in use. You can just try to…

Download file from url with C#

In the following code we are going to use WebClient class to download a file from a web location. public…

Local and Remote file inclusion

fimap – A little open source tool for local and remote file inclusion auditing and exploitation. It is published under…

Hide|Show extensions for known file types from cmd

Open command line window and execute: Hide extensions reg add HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced /v HideFileExt /t REG_DWORD /d 1 /freg add HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced…

Upload files with ftp and C#

C# and .Net framework offer FtpWebRequest for ftp transactions. FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create("ftp://example.org/test.txt");   ftp.Credentials = new NetworkCredential("username", "password"); ftp.Method…

Writing to a Text File with C#

C# offers class TextWriter. TextWriter tw = new StreamWriter("mytextfile.txt"); tw.WriteLine("my data"); tw.Close();TextWriter tw = new StreamWriter("mytextfile.txt"); tw.WriteLine("my data"); tw.Close();

Connect to a file share

We are going to use the net use command. usage: net use drive_letter: \ip_addressshared_folder_namenet use drive_letter: \ip_addressshared_folder_name or net use…

Next Page