51 Posted Topics
Re: As the error says, the first parameter must be LPCWSTR and not directly "COM1", so you can try writing the next(before the createfile call): [code] LPCWSTR abc = "COM1"; [/code] and rewrite the createfile to : [code] HANDLE hPort = CreateFile(abc, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); [/code] | |
Hello. I've been doing a small application that will go (using only unsigned integer values) from 0 to 4026531840 and print them out. My code is next: [CODE]#include <stdio.h> #include <inttypes.h> int main(void){ uint64_t cnt; for(cnt=0;cnt<=4026531840;cnt++){ printf("%d\n",cnt); } } [/CODE] The only problem that i have is the last numbers … | |
Hello everyone. I've been googling for a while but couldn't find any complete reference for the next question. So the question is, what do i need(cables, cards, etc) to connect a Fibre Channel Hard Drive on a normal desktop computer, by that i mostly think about the pci-e slots. Please … | |
Hello all. I was trying to do some text recovery ([url]http://www.cyberciti.biz/tips/linuxunix-recover-deleted-files.html[/url]) but after running grep -b 'TEXT' /dev/ad0 > good.txt i only see "Binary file /dev/ad0 matches" in the good.txt, whats wrong here ? =) Thanks in advance. | |
Hello again. I was trying to login to my web server protected with basic auth, and after i understood that it would be nice to automatically detect the realm so now i want to know on how to do so. Thanks in advance. | |
Hello all. I have a small problem, the next code finds the neden content, but it doenst print it: [CODE]$string = "#324423asdd asd 'BecamePosters' "; if($string =~ m/'[a-zA-Z]{1,40}'/) { print "ok!\n"; print $1; } else { print "not ok!\n"; }[/CODE] It only prints "ok!\n" but nothing more. Also triyed m/'*'/ … | |
Hello all, i've tryied to setup a mail server using thise guide: [url]http://www.debianadmin.com/debian-mail-server-setup-with-postfix-dovecot-sasl-squirrel-mail.html[/url] I can easily recieve it, but have problems sending it. My main.cf : [code] biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = server alias_maps = … | |
Hello again. Thise time i'm looking for an app, that will do packet sniffing (using pcap) and make a nice statistics by service and by destination showing the ips from local computers and from internet computers, the ideia is to see in with some web browser client. Example log: FROM … | |
Hello all, i would like to know how it is possible to remove for example last 20 characters, or by specifing the string to remove. For example i have 2 rows (in reality there are more than 100, thats why im not working it out by hand) with the next … | |
Hello all. I have a small problem, i need to recieve a 8 digit number for example: 12345678 87654321 and so on. After i need to devide the value and use the int as a array, something like int i=123; System.out.println(i[1]); It should return 2 (therocially), but obviously the doesnt … | |
Hello all. After passing for some days trying to configure ip forwarding under debian i've understood that there is some problem with them. So now i'm looking for any stand-alone app, not a firewall to handle the port forwarding. Would be glad for any information. If you have some skill … | |
Hello all. I have a string that will contain the username, for the security reasons i want it to be checked it if its diferent from the specific charset. I think it could be done by looping the check 1 character from the username at a time till the end … | |
Hello all. I was trying to execute wget from the perl under windows vista. In cmd i can easily run wget because its in \windows\system32 folder. But from perl,when i try both system('wget --h'); and system('c:\windows\system32\wget --h'); i get the next error : 'wget' is not recognized as an internal … | |
Hello all. With help on forum i've got the ideia of making the script to check if the file was created today and if its so,print its name. Here it is: [CODE] #!/bin/bash for file in *; do filedate= "date -r $file +%Y-%m-%d" currentdate= "date +%Y-%m-%d" if["$filedate" == "$currentdate"]; then … | |
Hello all. I was looking for a way to make some grafical stats of recieved files on my honeypot. After thinking on the way to do so, i understood that the easiest way would be parsing the filename with regullar expression or using dir() command. But for parsing the data … | |
Hello all. I have a small problem, i would like to make a statistics website. What i need is to show only two columns(creation date, filename) when i do "ls" to be like: 2009-2-2 filename Reading the man didnt helped much. Thanks in advance. | |
Good day. I want to create a small app that would take out the content from a rss feed and posteriorly from the url . I know that would be easily done in perl with regular expressions, but in php it seams a bit more difficult. So i want to … | |
Hello all. I have a small db, that has news. I want to update the field "content" to add the phraze "<br>Aproved by Admin" for every row in the database. A better explanation, i have table news, with 1 table that is defined : create table news (id int, creator … | |
Hello all. I want to add the mysql to ODBC sources. Im currently running windows vista, and in the control panel, Data Sources (ODBC) when i try to add a system Dns as source i cant find mysql in the list. Here is a pic(so you dont spam [url]http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-windows.html#connector-odbc-configuration-dsn-windows-5-1[/url] or … | |
Hello all. I have a small problem with sql. I have a table that has name and rank. For example the ranks would be getted like : select name,score from scores order by score desc So the first line i would see would be person with rank 1, second line … | |
Hello all. I have a small app that only runs on FreeBSD, and have a host where i dont have root. That app requires many libraries, most of them i have, but the problem , that app doesnt look for libs at current folder. I tryied running the app on … | |
Hello all. I get a small problem compiling it. And get the next error: \client/windows/handler/exception_handler.h(72) : fatal error C1083: Cannot open include file: 'client/windows/crash_generation/crash_generation_client.h': No such file or directory So how i proceeded : Installed mozilla-build 1.4, reinstalled the windows sdk(to the latest version), and have Visual Studio 2008 Professional … | |
Re: I've found 4 functions with start "Peek" (and they was found at win32.hlp, that you could find with google), that are: PeekConsoleInput PeekMessage PeekNamedPipe PeekPenInput Searching on msdn will give you the required information, hope it helps =). | |
Hello again. I'm now looking for a way to see if the current user has admin rights. I tryied the Iczelions way, and it always says that i dont have admin rights (on vista) . The next code i dont remember where i found, but it always says that the … | |
Hello all. I want to show a boolean value with MessageBox. But it only accepts strings. I'm currently looking throught win32 sdk but cant find any function to convert a bool to a string(something like .Tostring in c#). Any help ? | |
Hello all, i have a small question. In mysql i can do "select 'abc' into outfile 'c:\out';" is it possible to be done only with sql querry (to be executed at the server manager). I tryied select 'abc' into outfile 'c:\out.txt' and got the error : Incorrect syntax near 'c:\out.txt'. | |
Hello all. As always i have another problem with my Visual Studio 2008 Professional edition. I am running it on windows vista ultimate x64 edition. And i couldnt get my apps made here to work under any other xp machine (x32). I have created an empty c++ project ( Framework … | |
Re: You could use something like : cd PATH & dir & pause In the system function . | |
Re: You could try adding logging function to it. And after it read the log. | |
Hello all. I have some problems with compilation while working with WinApi. Here is the code: [code=c++]// include the basic windows header file #include <windows.h> #include <windowsx.h> // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program … | |
Hello all. I have a small problem. I have a crewler, that gets into one website and extract some info from it, and writes the exctracted content to file. The only prob, that in 3~4hours of work, thise script uses 1 gig of ram. [code]for(my $increment = 1; $increment <= … | |
Hello again. I have another problem =). I need to change the 1.lnk "pointing" path, i can get it with the following code : [code] string path = @"c:\1.lnk"; FileInfo fi = new FileInfo(@path); if (fi.FullName.EndsWith("lnk")) { IWshShell shell = new WshShell(); var lnk = shell.CreateShortcut(fi.FullName) as IWshShortcut; if (lnk … | |
Hello all. I would like to add a small handler. Imagine that i have a listbox, and when i right click i want to appear a menu with two options . How can i do it ? Thanks in advance. | |
Hello all. I have a small problem . How can I, in c#, windows forms aplication,ComboBox, use AutoComplete. Lets imagine that i have 5 items in the ComboBox that are : Abcd Abcdd Acc Accd Add If i start writing "ab" it will only display items that starts with "ab" … | |
Re: Try using fasm , its open source , with much documentation. Or if you would like to be near the processor , see the intel's developers manual , there you find the opcodes , so you wouldnt need to use any compile ,but write directly to file. | |
Re: Lol , gr8 , now you are compiling not your source... Anyway , addtitle is not required here . Neither the Keycheck function is required ,because its never used. So try removing it ,and have fun . | |
Re: First result in google : [url]http://www.cplusplus.com/doc/tutorial/[/url] | |
Re: In the if clause u need to use "==" and not = , because its defines a new value (with = ). So change if (inpchk = 0) cout<< facultize (n); else if (inpchk = 1) To if (inpchk == 0) cout<< facultize (n); else if (inpchk == 1) | |
Re: Here you have a small example : [code]#include <stdio.h> main() { FILE *fp; fp = fopen("test.txt", "w"); fscanf(fp, "%s", buffer); printf("Read Buffer: %s\n", %buffer ); flcose(fp;); } [/code] To better understand fscanf try viewing : [url]http://irc.essex.ac.uk/www.iota-six.co.uk/c/i4_fwrite_fscanf_fprintf.asp[/url] | |
Re: In my opinion its better to start with fasm . Its open and has some good documentation on the main site . (flatassembler.net) But to learn it try searching for "iczelion win32" tutorials (they are for masm btw). | |
Re: Try googling for "window hooking" or see the article on msdn : [url]http://msdn.microsoft.com/en-us/library/ms997537.aspx[/url] | |
Re: Its really a suspicious activity . But you could read a bit about registry , at [url]http://www.bleepingcomputer.com/tutorials/tutorial44.html[/url] . There are some pathes that start with windows before login or after . You'l just need to add your exe file (or dll/sys file in some cases) to it start before login. | |
Re: You could use a network sniffer , to see what packets and to where are being sent/recieved . And after ,try recreating the same in c++ using sockets . | |
Re: 3 arkm , i dont think you are right. [code=cplusplus] string cpuInfo = string.Empty; ManagementClass mc = new ManagementClass("win32_processor"); ManagementObjectCollection moc = mc.GetInstances(); foreach (ManagementObject mo in moc) { if (cpuInfo == "") { //Get only the first CPU's ID cpuInfo = mo.Properties["processorID"].Value.ToString(); break; } } [/code] With the source … | |
Re: You could even use xml file for your configs . In my opinion its a bit easier than searching directly from text files. | |
Re: If your is "AutoNumber" than its impossible to change it . Try defining it as an Integer. | |
Re: Sorry for a bit bad question , but i dont get the ideia of using the sql server , only if u want to save the results . And i dont think that it would be easy to draw in a browser ,but anyway ,try searching for c# + ajax. | |
Hi all , i just wanted to know ,why the **** this thing doenst work , i've tested the code 10 mins ago it worked ,and now ,it doesnt . static private bool ExistanceCheck(string Start, string SubKeyPath, string KeyName, string DefaultVal)//true , changed, false (unexistante , other value) { RegistryKey … | |
Re: There is not much documentation about hiding processes , try searching for antirootkit sources . But i dont think someone will code it in c# . Here is an example of a very good russian hiden process detector : [url]http://www.wasm.ru/pub/21/files/phunter.rar[/url] its writen in delphi. Btw , here is a tutorial … | |
Re: Win xp64 also runs 32 bit applications (badly but runs) so you could easily get a masm ,nasm , fasm or other compiler and start coding without problems =). |
The End.