Posted 8 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?
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.
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?
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
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
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.
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
<?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';
}
?>
d4ne wrote:Example code to get cid, to answer my own question in this thread and others which might search it.
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.