Coder Social home page Coder Social logo

Comments (11)

ace3 avatar ace3 commented on June 18, 2024 1
$this->conf['ip'] = 'x.x.x.x';
date_default_timezone_set('Asia/Jakarta');
$this->conf['time'] = time();
$this->conf['path'] = dirname(__FILE__);

function login($username, $password)
    {
        $this->ch = curl_init();
        
        curl_setopt($this->ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1');
        curl_setopt($this->ch, CURLOPT_URL, 'https://m.klikbca.com/login.jsp');
        curl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->conf['path'] . '/cookie');
        curl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->conf['path'] . '/cookiejar');
        
        $this->curlexec();
        
        $params = implode('&', array('value(user_id)=' . $username, 'value(pswd)=' . $password, 'value(Submit)=LOGIN', 'value(actions)=login', 'value(user_ip)=' . $this->conf['ip'], 'user_ip=' . $this->conf['ip'], 'value(mobile)=true', 'mobile=true'));
        
        curl_setopt($this->ch, CURLOPT_URL, 'https://m.klikbca.com/authentication.do');
        curl_setopt($this->ch, CURLOPT_REFERER, 'https://m.klikbca.com/login.jsp');
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, $params);
        curl_setopt($this->ch, CURLOPT_POST, 1);
        
        $this->curlexec();
    }

from bca-parser.

fedry avatar fedry commented on June 18, 2024

sepertinya karena mobile klikbca sekarang uda mesti enable javascript.. saya coba debug function login() juga uda gagal. T_T

from bca-parser.

kadekjayak avatar kadekjayak commented on June 18, 2024

@fedry wah kalau begitu metode scraping ini kemungkinan tidak bisa digunakan lagi...

from bca-parser.

ace3 avatar ace3 commented on June 18, 2024

ini saya kebetulan menggunakan script single php file, modif sendiri, dengan ngambil inspirasi dari sini, dan masi jalan.

from bca-parser.

fedry avatar fedry commented on June 18, 2024

ini saya kebetulan menggunakan script single php file, modif sendiri, dengan ngambil inspirasi dari sini, dan masi jalan.

kalau masih jalan, bole di-share script utk bagian loginnya? :)

from bca-parser.

kadekjayak avatar kadekjayak commented on June 18, 2024

hmm, spertinya terkait masalah saat resolve ip address

from bca-parser.

fedry avatar fedry commented on June 18, 2024

hmm, spertinya terkait masalah saat resolve ip address

iya.. ini masalah jg.
tapi saya hardcode ip addressnya, tetep gak bisa jalan jg...

ada yg berhasil setelah di hardcode ip addressnya?

from bca-parser.

kadekjayak avatar kadekjayak commented on June 18, 2024

@fedry hari ini saya test dengan IP manual masih bisa mas ambil transaksi...

from bca-parser.

kadekjayak avatar kadekjayak commented on June 18, 2024

@luqmansolihin barusan saya update ip resolver nya dan masih berfungsi dengan baik.

ef86bfe

from bca-parser.

luqmansolihin avatar luqmansolihin commented on June 18, 2024

@kadekjayak terimakasih, sudah solve sekarang.

from bca-parser.

fedry avatar fedry commented on June 18, 2024

yes.. ini uda sembuh... :)

from bca-parser.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.