Click Here
Home Blog Gallery Links Tutorials Projects
[PHP] Curl: Get contents of a remote file and output it to browser 2012-10-05 14:13
Using this script you can get a file to server and send it to the browser.
Quote:
<?php//get the file (e.g. image) and output it to the browser$ch = curl_init(); //open curl handlecurl_setopt($ch, CURLOPT_URL, $_GET['url']); //set an urlcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //do not output directly, use variablecurl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); //do a binary transfercurl_setopt($ch, CURLOPT_FAILONERROR, 1); //stop if an error occurred$file=curl_exec($ch); //store the content in variableif(!curl_errno($ch)){    //send out headers and output    header ("Content-Type: ".curl_getinfo($ch, CURLINFO_CONTENT_TYPE)."");    header ("Content-Length: ".curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD)."");    echo $file;} else echo 'Curl error: ' . curl_error($ch);curl_close($ch); //close curl handle?>
[C++] Adding a program to Startup 2011-06-16 16:10
A nice c++ example how to add a program to startup is here. All you nead to add this to your code. it utilizes windows api btw. The example is below.
Quote:
HKEY hkey;
char szBuf[] = "C:\\Windows\\notepad.exe";
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\Currentversion\\Run", 0, KEY_SET_VALUE, &hkey);
RegSetValueEx (hkey, "notepad.exe", 0, REG_SZ, (LPBYTE) szBuf, strlen(szBuf) + 1);
RegCloseKey(hkey);
full code below.
http://pastebin.com/LSHzGJE6
Video: Masm32 Hacks: Create an AutoTyper for Notepad 2011-05-30 16:55

In this video you will see how to write a nice hacking program using masm32 assembler. All you need to get it from masm32.com and use some capable text editor to edit source files. You can set or point the editor option of compilation to masm compiler there out.
This is a first implementation of youtube on my site so this gotta do alot :D
[C++] Random Junk V3 2010-07-05 12:31
This version works under linux perfectly
Quote:
#include <iostream>
#include <cstdlib> //for compiling under linux
using namespace std;
void junk();
int main (int argc, char * argv[]){
srand( time(NULL) );
junk();
}
void junk(){
int size=1024;
cout << "\x1B\x5B\x48\x1B\x5B\x32\x4A";
for(int i=0; i<size; i++) cout << (char) (rand() % (127 - 32) + 32);
cout << "\n";
}
[C++] Random Junk V2 2010-07-04 21:01
There's a new code that i created using while yesterday and today.
Quote:
#include <windows.h>
#include <iostream>
using namespace std;
void junk();
int main (int argc, char * argv[]){
srand( time(NULL) );
junk();
}
void junk(){
int size=1024;
char tmp[size];
for(int i=0; i<size; i++) tmp[i]= (char) (rand() % (127 - 32) + 32);
tmp[size]=0;
MessageBox(NULL, tmp, "Random Junk Goez Here", MB_ICONSTOP | MB_OK);
}
Compiled with C++
[C++] Random Junk Generation 2010-07-02 20:16
There's a new random generation code whitch was succefully coded from scratch. The thing is that it output random junk symbols all time. The code is below :D
Quote:
#include <iostream>
#include <cstdlib> //for compiling under linux
using namespace std;
void junk();
int main (int argc, char * argv[]){
srand( time(NULL) );
junk();
}
void junk(){
while(1) cout << (char) (rand() % 255);
}

Add a Comment

Get Your IP Instantly
Name:
Enter the text from the image below to the text field next to it (text is case sensitive):
Captcha
Email:

Name:
Password:

Enter Captcha (Case Sensitive):
Captcha


Register
English
Lietuviškai

RSS Feed
Main Content
Animation
Carmageddon
Programming
Technology
Electronics
Gaming
Linux
Anything
Site News

Unique visit count:
140 visits on page.
726 visits on site.
Detailed Statistics
Misceleanous Content