hacktricks/pentesting-web/xss-cross-site-scripting/debugging-client-side-js.md

57 lines
4 KiB
Markdown
Raw Normal View History

2024-02-11 02:13:58 +00:00
# Kurekebisha Hitilafu za JS ya Upande wa Mteja
2022-04-28 16:01:33 +00:00
2024-02-11 02:13:58 +00:00
## Kurekebisha Hitilafu za JS ya Upande wa Mteja
2022-05-01 13:25:53 +00:00
2022-04-28 16:01:33 +00:00
<details>
2024-02-11 02:13:58 +00:00
<summary><strong>Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)</strong></a><strong>!</strong></summary>
2022-04-28 16:01:33 +00:00
2024-02-11 02:13:58 +00:00
Njia nyingine za kusaidia HackTricks:
2024-01-01 17:15:42 +00:00
2024-02-11 02:13:58 +00:00
* Ikiwa unataka kuona **kampuni yako inatangazwa katika HackTricks** au **kupakua HackTricks kwa muundo wa PDF** Angalia [**MPANGO WA KUJIUNGA**](https://github.com/sponsors/carlospolop)!
* Pata [**swag rasmi ya PEASS & HackTricks**](https://peass.creator-spring.com)
* Gundua [**The PEASS Family**](https://opensea.io/collection/the-peass-family), mkusanyiko wetu wa kipekee wa [**NFTs**](https://opensea.io/collection/the-peass-family)
* **Jiunge na** 💬 [**Kikundi cha Discord**](https://discord.gg/hRep4RUj7f) au [**kikundi cha telegram**](https://t.me/peass) au **tufuate** kwenye **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks_live)**.**
* **Shiriki mbinu zako za kudukua kwa kuwasilisha PRs kwa** [**HackTricks**](https://github.com/carlospolop/hacktricks) na [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) repos za github.
2022-04-28 16:01:33 +00:00
</details>
2024-02-11 02:13:58 +00:00
Kurekebisha hitilafu za JS ya upande wa mteja inaweza kuwa kero kwa sababu kila wakati unapobadilisha URL (ikiwa ni pamoja na mabadiliko katika vigezo vilivyotumiwa au thamani za vigezo), unahitaji **kuweka upya kizuizi na kusasisha ukurasa**.
2022-04-25 12:04:04 +00:00
2022-05-01 13:25:53 +00:00
### `debugger;`
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
Ikiwa unaweka mstari `debugger;` ndani ya faili ya JS, wakati **kivinjari** kinatekeleza JS, itasimamisha **kizuizi** katika eneo hilo. Kwa hivyo, njia moja ya kuweka kizuizi cha kudumu ni **kupakua faili zote kwenye kompyuta yako na kuweka kizuizi katika msimbo wa JS**.
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
### Kubadilisha
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
Kubadilisha kivinjari kuruhusu kuwa na nakala ya ndani ya msimbo ambao utatekelezwa na kutekeleza badala ya ule kutoka kwenye seva ya mbali.\
Unaweza **kufikia badiliko** katika "Zana za Dev" --> "Vyanzo" --> "Badilisha".
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
Unahitaji **kuunda folda tupu ya ndani kutumika kuhifadhi badiliko**, kwa hivyo tuunda folda mpya ya ndani na kuweka kama badiliko kwenye ukurasa huo.
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
Kisha, katika "Zana za Dev" --> "Vyanzo" **chagua faili** unayotaka kubadilisha na **bonyeza kulia "Hifadhi kwa badiliko"**.
2022-04-25 12:04:04 +00:00
![](<../../.gitbook/assets/image (649).png>)
2024-02-11 02:13:58 +00:00
Hii ita**nakili faili ya JS kwenye kompyuta yako** na utaweza **kubadilisha nakala hiyo kwenye kivinjari**. Kwa hivyo tuongeze amri ya **`debugger;`** mahali popote unapotaka, **hifadhi** mabadiliko na **sasisha** ukurasa, na kila wakati unapoingia kwenye ukurasa huo **nakala yako ya JS ya ndani itapakia** na amri yako ya kizuizi itabaki mahali pake:
2022-04-25 12:04:04 +00:00
![](<../../.gitbook/assets/image (648).png>)
2022-04-25 12:04:04 +00:00
2024-02-11 02:13:58 +00:00
## Marejeo
2022-04-25 12:04:04 +00:00
* [https://www.youtube.com/watch?v=BW\_-RCo9lo8\&t=1529s](https://www.youtube.com/watch?v=BW\_-RCo9lo8\&t=1529s)
2022-04-28 16:01:33 +00:00
<details>
2024-02-11 02:13:58 +00:00
<summary><strong>Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)</strong></a><strong>!</strong></summary>
2022-04-28 16:01:33 +00:00
2024-02-11 02:13:58 +00:00
Njia nyingine za kusaidia HackTricks:
2024-01-01 17:15:42 +00:00
2024-02-11 02:13:58 +00:00
* Ikiwa unataka kuona **kampuni yako inatangazwa katika HackTricks** au **kupakua HackTricks kwa muundo wa PDF** Angalia [**MPANGO WA KUJIUNGA**](https://github.com/sponsors/carlospolop)!
* Pata [**swag rasmi ya PEASS & HackTricks**](https://peass.creator-spring.com)
* Gundua [**The PEASS Family**](https://opensea.io/collection/the-peass-family), mkusanyiko wetu wa kipekee wa [**NFTs**](https://opensea.io/collection/the-peass-family)
* **Jiunge na** 💬 [**Kikundi cha Discord**](https://discord.gg/hRep4RUj7f) au [**kikundi cha telegram**](https://t.me/peass) au **tufuate** kwenye **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/hacktricks_live)**.**
* **Shiriki mbinu zako za kudukua kwa kuwasilisha PRs kwa** [**HackTricks**](https://github.com/carlospolop/hacktricks) na [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) repos za github.
2022-04-28 16:01:33 +00:00
</details>