Town Field Poem:Cheng listens to the Tathagata language, the world name and benefit of Dayton. Be willing to do the Tibetan apostles, the broad show is by Sanfu mention.I would like to do what I learned, to achieve a conscience blog. May all the Yimeimei, reproduce the wisdom of the body.——————————————————————————————————————————Code# OS Operating system# Python expanded language import os# print the current working directory print (OS.GETCWD ()) #列举当
PHP gets all the variable names and values passed in by the Get method
Objective
The requirement of this blog is that I need an HTTP request such as 127.0.0.1?a=123b=456c=789 to take all the get parameters out to the back of the test.com, that is, the final ideal URI should be test.com?a= 123b=456c=789
Two methods can be implemented, recommended to do before Goo
How does the WIN8 system set all files to display suffix names?
1, we look at, I am now in the Win8 interface under the desktop;
2, double-click the desktop computer button, is XP below my computer;
3, come directly to the bottom of my computer, we currently see my computer's letter, and the use of the situation;
4, to find the words above view, we click on it on the
Regular expressions, also known as formal representations, general representations (English: Regular Expression, often abbreviated as regex, RegExp, or re) in code, a concept of computer science. A regular expression uses a single string to describe and match a series of strings that conform to a certain syntactic rule. In many text editors, regular expressions are often used to retrieve and replace text that conforms to a pattern.
Writes out all the
PHP gets all the file names in the directory
1. First open the directory to operate and point to it with a variable
Open the subdirectory under PIC under the current directory common.
$handler = Opendir (' Pic/common ');
2. Read all files in the directory under the loop
/* Where $filename = Readdir ($handler) assigns the read file name to the $filename each time
Label:1. Read all the fields of a table using C # SQL statements2. Execute the following SQLString strSQL = String. Format ("Select column_name from Information_schema.columns where table_name= '" + the table name that needs to be queried + "' and table_schema= '" + one that needs to be queried The database name where the table is located + "' and column_name!= ' filter The fields of unwanted tables");3. Execute the corresponding SQL, return the datas
Label: ///
///Gets the database instance name for the specified IP address for all databases. ///
/// the specified IP address.
/// the user name of the login database.
/// the password for the login database.
/// Returns a list that contains the data instance name.
PrivateArrayList Getalldatabase (stringIpstringUsernamestringpassword) {ArrayList dbnamelist=NewArrayList (); SqlConnection Connection
Php obtains the names and values of all variables passed in the GET method. The requirement of this blog is that I need to send an http request such as 127.0.0.1? A123b456c789 obtain all the get parameters and concatenate them to the end of test.com. that is, the final ideal uri should be test. c. the requirement of this blog is that I need to send an http reques
Traverse the directory under the file name and show that we will use several functions one is the Opendir directory read function, and then use Readdir to get the directory in the information to the array and then through the while traversal.
Show all files in the directory
The code is as follows
Copy Code
$dir =dirname (__file__). " /.. /www.bkjia.c0m/";//Enter a different path herePHP iterates through
Php obtains the names and values of all variables passed in the GET method. preface this blog requires that an http request such as 127.0.0.1? A = 123 amp; B = 456 amp; c = 789 all get parameters are obtained and concatenated to the end of test.com, that is, the final ideal uri should be the name and value of all var
Show all files in the directory The code is as follows:Copy code $ Dir = dirname (_ FILE _). "/../www.111cn.net/"; // enter another path here// PHP traverses all files in the folder$ Handle = opendir ($ dir .".");// Define an array used to store file names$ Array_file = array ();While (false! ==( $ File = readdir ($ handle ))){If ($ file!
SQL code used to query the names and data of tables with IDs greater than 10000 in Oracle -- query the data with IDs greater than 10000 in all tables and the corresponding table name select 'select id, ''' | table_name | ''' as tablename from '| table_name | 'where id> = 10000 unival' from user_tables; www.2cto.com SQL code -- The result is as follows: select id, 'auth _ member_role' as tablename from AUTH_
Copy codeThe Code is as follows:$ Server = 'localhost ';$ User = 'root ';$ Pass = '';$ Dbname = 'dayanmei _ com ';$ Conn = mysql_connect ($ server, $ user, $ pass );If (! $ Conn) die ("database system connection failed! ");Mysql_select_db ($ dbname) or die ("database connection failed! ");$ Result = mysql_query ("show tables ");While ($ row = mysql_fetch_array ($ result )){Echo $ row [0]. "";}Mysql_free_result ($ result ); Note that the mysql_list_tables function for listing
String path = @"X:\xxx\xxx";//第一种方法varfiles = Directory.GetFiles(path, "*.txt");foreach(varfile infiles)Console.WriteLine(file);//第二种方法DirectoryInfo folder = newDirectoryInfo(path);foreach(FileInfo file in folder.GetFiles("*.txt")){Console.WriteLine(file.FullName);}C # gets all the file names under the folder
HMODULE hModule[1024]; DWORD dwRes; HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,FALSE,GetCurrentProcessId()); //获取的是当前进程ID EnumProcessModules(hProcess,hModule,sizeof(hModule),dwRes); for (int i = 0; i "API" gets all the module names of the process
Getshell: Go to the Haier main site and all its second-level domain names and databases (getshell for application vulnerabilities)
No description!
WooYun: TRSWCM full-version GETSHELL VulnerabilityHttp://enwcm.haier.com/first, the background is open to the InternetHttp://enwcm.haier.com/wcm/services/trswcm:SOAPService vulnerability exists here
POST http://enwcm.haier.com/wcm/services/trswcm:SOAPService HTTP
Here, we provide a function to get all the file names in the folder and use the Code directly.
Address: http://blog.csdn.net/qqmcy/article/details/36184733
//// Visiblerect. CPP // test890 // created by du jia on 14-4-28. /// STD: vector
Copy codeThe Code is as follows: $ server = 'localhost ';
$ User = 'root ';
$ Pass = '';
$ Dbname = 'dayanmei _ com ';
$ Conn = mysql_connect ($ server, $ user, $ pass );
If (! $ Conn) die ("database system connection failed! ");
Mysql_select_db ($ dbname) or die ("database connection failed! ");
$ Result = mysql_query ("show tables ");
While ($ row = mysql_fetch_array ($ result ))
{
Echo $ row [0]. "";
}
Mysql_free_result ($ result );
Note that the mysql_list_tables function for li
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.