T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.ca/public_html/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.ca/public_html/scripts/recover-data.ts
import { PrismaClient } from '@prisma/client';
import { hash } from 'bcryptjs';

const prisma = new PrismaClient();

async function recoverData() {
  console.log('πŸ”„ Recovering original data...');

  try {
    // Create Justin Wee
    const justinWee = await prisma.user.upsert({
      where: { email: 'justin.wee@adwlaw.ca' },
      update: {},
      create: {
        email: 'justin.wee@adwlaw.ca',
        name: 'Justin Wee',
        username: 'justin-wee',
        password: await hash('admin123', 12),
        role: 'ADMIN',
        bio: 'Founding partner of ADW Law Firm',
        title: 'Managing Partner',
        specialization: 'Complex Litigation',
        yearsOfExperience: 15,
        hourlyRate: 550.0,
        proBono: true,
        isVerified: true,
        xpPoints: 5200,
        level: 12,
        isProfilePublic: true
      }
    });

    console.log('βœ… Created Justin Wee');

    // Create team members
    const team = await Promise.all([
      prisma.user.create({
        data: {
          email: 'audrey.labrecque@adwlaw.ca',
          name: 'Audrey Labrecque',
          username: 'audrey-labrecque',
          password: await hash('lawyer123', 12),
          role: 'LAWYER',
          bio: 'Senior associate',
          title: 'Senior Associate',
          specialization: 'Criminal Defense',
          yearsOfExperience: 8,
          hourlyRate: 420.0,
          proBono: true,
          isVerified: true,
          xpPoints: 2100,
          level: 7,
          isProfilePublic: true
        }
      }),
      prisma.user.create({
        data: {
          email: 'jerome.aucoin@adwlaw.ca',
          name: 'JΓ©rΓ΄me Aucoin',
          username: 'jerome-aucoin',
          password: await hash('lawyer123', 12),
          role: 'LAWYER',
          bio: 'Associate lawyer',
          title: 'Associate',
          specialization: 'Civil Rights',
          yearsOfExperience: 5,
          hourlyRate: 380.0,
          proBono: true,
          isVerified: true,
          xpPoints: 1200,
          level: 5,
          isProfilePublic: true
        }
      })
    ]);

    console.log('βœ… Created team members');

    // Create Bordeaux case
    await prisma.legalCase.create({
      data: {
        title: 'Bordeaux Prison Conditions Class Action',
        description: 'Class action against Quebec for rights violations at Bordeaux Prison',
        caseNumber: '2024QCCS4540',
        caseType: 'class_action',
        status: 'active',
        jurisdiction: 'Quebec Superior Court',
        category: 'HUMAN_RIGHTS',
        isPublic: true,
        isAcceptingApplications: true,
        leadLawyerId: justinWee.id,
        createdBy: justinWee.id
      }
    });

    console.log('βœ… Created Bordeaux case');

    console.log('πŸŽ‰ Data recovery completed!');

  } catch (error) {
    console.error('❌ Error:', error);
  } finally {
    await prisma.$disconnect();
  }
}

recoverData(); 

CasperSecurity Mini