Generate Cid from username

d4ne
by d4ne · 33 posts
7 years ago in PHP
Posted 7 years ago
Sita wrote:
whats a cid? client id? what can you do with a cid? or why would one need to use such a thing?


A CID is a customer identification number. Every IMVU account has a unique CID that can be used to identify them. A CID can be used to generate links for someones accounts such as their homepage, forum profile, catalog and many other things. It can also be used to get information from IMVU about an account and a lot of the programs I create use a CID.
Posted 7 years ago
D.M wrote:
Sita wrote:whats a cid? client id? what can you do with a cid? or why would one need to use such a thing?A CID is a customer identification number. Every IMVU account has a unique CID that can be used to identify them. A CID can be used to generate links for someones accounts such as their homepage, forum profile, catalog and many other things. It can also be used to get information from IMVU about an account and a lot of the programs I create use a CID.


oh wow. now this sounds really really interesting but i think i need more hands on training with something like this. where would you suggest i start for some practice on cid's and how to use them?
Posted 7 years ago
Sita wrote:
oh wow. now this sounds really really interesting but i think i need more hands on training with something like this. where would you suggest i start for some practice on cid's and how to use them?



Use the Bio Generator to see many of the links a cid is used for and go from there: services/generators/imvu-bio-generator/imvu-bio-generator.php
Posted 7 years ago
D.M wrote:
Sita wrote:oh wow. now this sounds really really interesting but i think i need more hands on training with something like this. where would you suggest i start for some practice on cid's and how to use them?Use the Bio Generator to see many of the links a cid is used for and go from there: hhttps://www.imvumafias.org/community/se ... erator.php



so it doesnt give you information about someone you want to spy on? just links that belong to you? thats not much fun and i cant see the use for it but thank you dm.

i do recall at one point in time very long ago that you used to be able to see other peoples friends list....is that still possible? or gone forever?

i must say...i do like the speedy replies i get from this site :)
Posted 7 years ago
Sita wrote:
so it doesnt give you information about someone you want to spy on? just links that belong to you? thats not much fun and i cant see the use for it but thank you dm.i do recall at one point in time very long ago that you used to be able to see other peoples friends list....is that still possible? or gone forever?i must say...i do like the speedy replies i get from this site


No...that tool lets you generate links for anyone you want, not just yourself. And yes, you can use a cid to spy on people but I won't tell you how to do it. I reserve that information for my programs.

As for the friends list, no that doesn't work anymore.
Posted 7 years ago
D.M wrote:
Sita wrote:so it doesnt give you information about someone you want to spy on? just links that belong to you? thats not much fun and i cant see the use for it but thank you dm.i do recall at one point in time very long ago that you used to be able to see other peoples friends list....is that still possible? or gone forever?i must say...i do like the speedy replies i get from this site No...that tool lets you generate links for anyone you want, not just yourself. And yes, you can use a cid to spy on people but I won't tell you how to do it. I reserve that information for my programs.As for the friends list, no that doesn't work anymore.


OMG, are you kidding? i could kill you right now :) thats definitely no fair dm, but okay. im still learning, and it would had been very helpful to learn such a thing. but okay...at least i know there are ways so..thank you :)
Posted 7 years ago
Sita wrote:
OMG, are you kidding? i could kill you right now thats definitely no fair dm, but okay. im still learning, and it would had been very helpful to learn such a thing. but okay...at least i know there are ways so..thank you


If I gave away all my secrets I wouldn't be able to benefit from making things for your guys and content would dry up :P

Besides I create things that do the spying for you so you don't have to do it yourself. :D
Posted 6 years ago · Author
Example code to get cid, to answer my own question in this thread and others which might search it.

Code
<?php
   class getCid
   {      
      function __construct($username)
      {
         $this->username = $username;
      }

      function findUltimateDestination($url, $maxRequests = 10)
      {
         $ch = curl_init();

         curl_setopt($ch, CURLOPT_HEADER, true);
         curl_setopt($ch, CURLOPT_NOBODY, true);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($ch, CURLOPT_TIMEOUT, 15);
         curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Link Checker)');

         while ($maxRequests--)
         {
            curl_setopt($ch, CURLOPT_URL, $url);
            $response = curl_exec($ch);

            $location = '';
            if (in_array(curl_getinfo($ch, CURLINFO_HTTP_CODE), [301, 302, 303, 307, 308])) {
               if (preg_match('/Location:(.*)/i', $response, $match)) {
                  $location = trim($match[1]);
               }
            }

            if (empty($location))
            {
               return $url;
            }

            if ($location[0] == '/')
            {
               $u = parse_url($url);
               $url = $u['scheme'] . '://' . $u['host'];
               if (isset($u['port'])) {
                  $url .= ':' . $u['port'];
               }
               $url .= $location;
            } else {
               $url = $location;
            }
         }

         return null;
      }

      function getCid()
      {
         $finalDestination = $this->findUltimateDestination('http://www.imvu.com/catalog/web_av_pic.php?av=' . $this->username);         
         $cid = explode("_", end(explode("/", $finalDestination)))[0];
         
         return $cid;
      }
   }
   
   $username = $_GET['username'];
   
   if(isset($username))
   {
      $imvuCid = new getCid($username);
      $cid = $imvuCid->getCid($username);
      echo $cid;
   }
   else
   {
      echo 'Please submit a username -> ?username=xxx';
   }
   
?>
Posted 6 years ago
d4ne wrote:
Example code to get cid, to answer my own question in this thread and others which might search it.


Does your code have fallbacks? There are situations where a user's cid can't be gotten from one method. All of my tools use at least 4 different methods to get someone's cid cause it's possible for one to fail on some users.
Posted 6 years ago · Author
D.M wrote:
d4ne wrote:Example code to get cid, to answer my own question in this thread and others which might search it.Does your code have fallbacks? There are situations where a user's cid can't be gotten from one method. All of my tools use at least 4 different methods to get someone's cid cause it's possible for one to fail on some users.


The posted code ive responded is just a example, so no there's no fallback. Ive just posted it as a example cause ive seen another guy was looking for this. So i've thought ill make a quick example way.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts