The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
|
Bypass Cloudflare And Get IP addresses of Forums/Websites And Members
filter_list
|
|
|
Thirteen Years of Service
Posts: 369
Threads: 29
RE: Bypass Cloudflare And Get IP addresses of Forums/Websites And Members 04-29-2013, 06:28 PM
#11
for bypassing the CloudFlare IP DNS information is everything.. But some paid servers of CloudFlare are not easy to bypass..
whoami;id
root
uid=0(root) gid=0(root) groups=0(root)
•
Thirteen Years of Service
Posts: 3,169
Threads: 99
RE: Bypass Cloudflare And Get IP addresses of Forums/Websites And Members 04-29-2013, 08:27 PM
#12
(03-19-2013, 12:54 PM)zomgwtfbbq Wrote: (03-19-2013, 07:57 AM)The Alchemist Wrote: I'm a complete noob when it comes to PHP GD(not PHP). Would you mind sharing some snippets of your technique? You'd stated that the process I shared is quicker, but I'd wanna have a look at your snippet too. Its never a waste to learn something new. 
Had to rewrite one from scratch as it's on one of my laptops, but since it's not too much effort..here's what you need.
You will need four files, all in the same folder:
- .htaccess (image.php > image.jpg)
- log.txt (logs the ip address and other stuff you want to log)
- someimage.jpg (the real image)
- image.php (creates the image based on someimage.jpg)
.htaccess
Code:
RewriteEngine On
RewriteRule ^image\.jpg$ image.php
image.php
PHP Code:
<?php
// locations
$sSourceImage = "someimage.jpg";
$sLogFile = "log.txt";
// data string you want to log
$sLogEntry = $_SERVER['REMOTE_ADDR']."|".date('d-m-Y H:i:s',time())."\n";
// log the request
$rConnect = @fopen($sLogFile,"a");
@fwrite($rConnect,$sLogEntry);
@fclose($rConnect);
// create the image stream and send the header
$rImage = @imagecreatefromjpeg($sSourceImage);
header('Content-type: image/jpeg');
@imagejpeg($rImage);
@imagedestroy($rImage);
?>
rest of the files:
- someimage.jpg (any image you like)
- log.txt(just name a file like that)
Make sure you have url_rewriting enabled and that the GD extension is loaded. Also name the htaccess file .htaccess, not htaccess.txt for example.
Just to point out... this is a method i can recall using as long back as a decade ago. While useful, it is nothing new. As for the OP... this site is just doing this, but offering it to the masses lol.
•
Thirteen Years of Service
Posts: 1,012
Threads: 41
RE: Bypass Cloudflare And Get IP addresses of Forums/Websites And Members 04-30-2013, 01:32 AM
#13
Quite a interesting method, thanks for the share.
•
Thirteen Years of Service
Posts: 1,232
Threads: 66
RE: Bypass Cloudflare And Get IP addresses of Forums/Websites And Members 04-30-2013, 03:56 PM
#14
(04-29-2013, 08:27 PM)Geoff Wrote: Spoiler:
(03-19-2013, 12:54 PM)zomgwtfbbq Wrote: (03-19-2013, 07:57 AM)The Alchemist Wrote: I'm a complete noob when it comes to PHP GD(not PHP). Would you mind sharing some snippets of your technique? You'd stated that the process I shared is quicker, but I'd wanna have a look at your snippet too. Its never a waste to learn something new. 
Had to rewrite one from scratch as it's on one of my laptops, but since it's not too much effort..here's what you need.
You will need four files, all in the same folder:
- .htaccess (image.php > image.jpg)
- log.txt (logs the ip address and other stuff you want to log)
- someimage.jpg (the real image)
- image.php (creates the image based on someimage.jpg)
.htaccess
Code:
RewriteEngine On
RewriteRule ^image\.jpg$ image.php
image.php
PHP Code:
<?php
// locations
$sSourceImage = "someimage.jpg";
$sLogFile = "log.txt";
// data string you want to log
$sLogEntry = $_SERVER['REMOTE_ADDR']."|".date('d-m-Y H:i:s',time())."\n";
// log the request
$rConnect = @fopen($sLogFile,"a");
@fwrite($rConnect,$sLogEntry);
@fclose($rConnect);
// create the image stream and send the header
$rImage = @imagecreatefromjpeg($sSourceImage);
header('Content-type: image/jpeg');
@imagejpeg($rImage);
@imagedestroy($rImage);
?>
rest of the files:
- someimage.jpg (any image you like)
- log.txt(just name a file like that)
Make sure you have url_rewriting enabled and that the GD extension is loaded. Also name the htaccess file .htaccess, not htaccess.txt for example.
Just to point out... this is a method i can recall using as long back as a decade ago. While useful, it is nothing new. As for the OP... this site is just doing this, but offering it to the masses lol.
I didn't see anything like this in Hack Community. So I shared it here.
(04-30-2013, 01:32 AM)3r3bu$ Wrote: Quite a interesting method, thanks for the share.
Your'e welcome.
PM me if you need help.
My pastebin
HERE. My URL Shortener
HERE.
•
Twelve Years of Service
Posts: 937
Threads: 99
RE: Bypass Cloudflare And Get IP addresses of Forums/Websites And Members 09-24-2013, 07:04 PM
#15
This is called Cloudflare resolving, pretty cool!
•
Users browsing this thread: 1 Guest(s)