Hot-Honeys



.

Author Topic: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!  (Read 1709 times)

0 Members and 1 Guest are viewing this topic.

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 584
  • Images: 653
  • Reputation: 25
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #30 on: January 11, 2017, 12:49 pm »
01) What bothers me a little is that solution we uses for imgzen from firewaran that does not use neither prepend nor append does not seem to work in this case.

02) in case of imgzen:

</script>
<div id="redirect-close">
<Form method="POST" action=''>
<input type="hidden" name="op" value="view">
<input type="hidden" name="id" value="99o418txibsh">
<input type="hidden" name="pre" value="1">
<input type="submit" name="next" value="Continue to image...">
</Form>
</div>
<div id="redirect-wait" class="button_redi">Loading... Please wait.</div>

<script>


03) in case of imgview:

<script type="text/javascript">
      var ranNum= Math.floor(Math.random() * 7);
      var ranNum2= Math.floor(Math.random() * 8);
      /* $('.close').click(function() {*/
         /* if (document.getElementById("s74xnbq9kbwj").clientHeight < 30 || document.getElementById("s74xnbq9kbwj").style.position == "absolue") {
         $("#32559").append('<img src="http://sstatic1.histats.com/0.gif?2836703&101" border="0">');
         $("#32559").append('<center><h2>Cannot see Image???</h2><br><br><p>Known issue because of Ad Blocking software installation. Please disable your ads blocking software on ImgView.net and Reload page.</p><br><p>Sorry for inconvenience.</p></center>');
         } else  { */
          setTimeout(function(){
         $('#32559').append('<style>.is74xnbq9kbwj32559{display:none;}.i32559s74xnbq9kbwj{display:initial;}</style>');
          for(var i = 0; i <= ranNum; i++) {
             $('#32559').prepend($('<Form method="POST" action=""><input type="hidden" name="op" value="view"><input type="hidden" name="id" value="s74xnbq9kbwj"><input type="hidden" name="pre" value="1"><input type="hidden" name="a2801ed115fd1e8eecc9e2264f8def3b" value="1"><input type="submit" name="next" value="Continue to Image..."></Form>').attr('class', 'is74xnbq9kbwj32559'));
          }
          for(var i = 1; i <= ranNum; i++) {
             $('#32559').prepend('<br>' );
          }
         $('#32559').append($('<Form method="POST" action=""><input type="hidden" name="op" value="view"><input type="hidden" name="id" value="s74xnbq9kbwj"><input type="hidden" name="pre" value="1"><input type="hidden" name="633efd58cbb1c8ca7b4ce4a81629f7ef" value="1"><input type="submit" name="next" value="Continue to Image..."></Form>').attr('class', 'i32559s74xnbq9kbwj'));
          for(var i = 0; i <= ranNum2; i++) {
             $('#32559').append($('<Form method="POST" action=""><input type="hidden" name="op" value="view"><input type="hidden" name="id" value="s74xnbq9kbwj"><input type="hidden" name="pre" value="1"><input type="hidden" name="a2801ed115fd1e8eecc9e2264f8def3b" value="1"><input type="submit" name="next" value="Continue to Image..."></Form>').attr('class', 'is74xnbq9kbwj32559'));
          }
          }, 500);
         /*}*/
      /*});*/
      </script>

04) firewaran, season6: Do you see a possible solution for both imgzen and imgview? I might have a look at it later today, if I can find a minute.

Cheers, SD

Offline firewaran

  • Moderator
  • *****
  • Joined: Apr 2016
  • Posts: 257
  • Reputation: 18
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #31 on: January 11, 2017, 07:14 pm »
As all code, it needs to evolve ;P. I have this one posted in one or another occasion.

For me it works with the following search condition for the <forms>-part:
Code: [Select]
(?=<Form\b)(.|$|\r|\n)+?<\/Form>
Assumed the code looks like as you posted it.
I just took you post and let my regex search it, found all of the form-sections

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 584
  • Images: 653
  • Reputation: 25
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #32 on: January 12, 2017, 12:05 am »
No Fire, your pattern is not working on imgview. at least from https://vipergirls.to/threads/924000-Fay-Pink-Lemonade-%28Album-1912631%29-x46?highlight=imgview, need the append from season6 on this one.

Cannot investigate now. Cheers. SD

Offline firewaran

  • Moderator
  • *****
  • Joined: Apr 2016
  • Posts: 257
  • Reputation: 18
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #33 on: January 12, 2017, 08:50 pm »
It seems not to be the problem of my <form>-search pattern. I get that if i have a look.
It somehow has a problem when it should extract the input-fields.

I may have a look at the weekend.

Offline b0urb0n

  • Newbie
  • *
  • Joined: Jan 2017
  • Posts: 1
  • Reputation: 0
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #34 on: January 18, 2017, 07:22 pm »
Hi, kinda new here but I've been using IHG for a long time now, it's a quality piece of software  :D

Anyhow, I think I have these hosts working now, looks like they're now expecting some data coming back in the cookie. This is a bit slow to my liking, but it seems to work with imgview.net.

Code: [Select]
function(pageData, pageUrl) {

pageData = pageData || '';
pageUrl = pageUrl || '';

var returnObj = {
imgUrl: null,
status: 'ABORT'
},
req = new XMLHttpRequest(),
url = pageData.match(/window\.location\s*=\s*"(.+?)"/),
imageRegex = /<img\s*src="([^"]+)"\s*class="pic"/i,
cookieData = null,
cookieVars = null,
postVars = null,
postData = null,
finalUrl = null;

if(!url || url.length < 2) {
throw new Error('Could not match on first URL to grab!');
}

req.open('GET', url[1], false);
req.setRequestHeader('Content-Type','text/plain');
req.send(null);

if(!req.responseText || !req.responseText.length) {
throw new Error('No response from GET request to fetch PHP page!');
}

postData = extractFormData(req.responseText);
postVars = postData.map(function(data) {
return data.name + '=' + data.value;
});

cookieData = extractCookieData(req.responseText);
postVars.push('file_id='+cookieData);

cookieVars = postVars.join('; ')

// cleanup old request object
req = null;

req = new XMLHttpRequest();
req.open('POST', url[1], false);
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
req.setRequestHeader('Cookie', postVars.join(';') + 'ref_url=no_ref');
req.send(postVars.join('&'));

if(req.status !== 200) {
throw new Error('Could not POST final request: ' + req.statusText);
}

returnObj.imgUrl = req.responseText.match(imageRegex)[1];
returnObj.status = 'OK';

return returnObj;

/* * * */

function extractCookieData(pageData) {
pageData = pageData || '';

var cookieRegex = /\$\.cookie\('file_id', '([0-9]+)', { expires: [0-9]+ }\)/i
cookieResult = pageData.match(cookieRegex);

if(cookieResult.length < 2) {
throw new Error('Could not match the cookie regex!');
}
return cookieResult[1];
}

function extractFormData(pageData) {
pageData = pageData || '';

var formRegex = /\.append\(\$\('<form\b[^>]*>(.*?)<\/form>/i,
formResult = pageData.match(formRegex),
parser = new DOMParser(),
inputData = [],
doc = null,
inputs = null;

if(formResult.length < 2) {
throw new Error('Could not match the form regex!');
}

doc = parser.parseFromString(formResult[1], 'text/html');
inputs = doc.getElementsByTagName('input');

for (var i = inputs.length - 1; i >= 0; i--) {
var input = inputs[i];
inputData.push({
name: input.name,
value: input.value
});
if(input.name === 'id') {
inputData.push({
name: 'file_code',
value: input.value
});
inputData.push({
name: 'fcode',
value: input.value
});
}
}

return inputData;
}

}

*edit* I just tried this same function w/ imgrock, imgoutlet - it works there as well :)

Offline firewaran

  • Moderator
  • *****
  • Joined: Apr 2016
  • Posts: 257
  • Reputation: 18
  • Gender: Male
Re: Imgtown, Imgview, Imgrock and Imgmaze have stopped working!
« Reply #35 on: January 18, 2017, 07:33 pm »
Welcome to HH.

You solution looks like as you have to work with JS very often ^^
Nice mechanics. I need to have a look at this the next few days and learn from it :)