How to view a file with no read permission and permission can't be changed [on hold] Unicorn...

What is the least dense liquid under normal conditions?

Does Mathematica have an implementation of the Poisson Binomial Distribution?

Has a Nobel Peace laureate ever been accused of war crimes?

Are these square matrices always diagonalisable?

A strange hotel

Did the Roman Empire have penal colonies?

What is the ongoing value of the Kanban board to the developers as opposed to management

c++ diamond problem - How to call base method only once

Putting Ant-Man on house arrest

All ASCII characters with a given bit count

As an international instructor, should I openly talk about my accent?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Seek and ye shall find

Suing a Police Officer Instead of the Police Department

How do I check if a string is entirely made of the same substring?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

How to avoid introduction cliches

Error: Syntax error. Missing ')' for CASE Statement

Is it acceptable to use working hours to read general interest books?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

What is a 'Key' in computer science?

Split coins into combinations of different denominations

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

What is it called when you ride around on your front wheel?



How to view a file with no read permission and permission can't be changed [on hold]



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionCopy just permissions and ownership from one tar file to anotherChanged file access to read only but I can still write to the file. Why?Directory permissions for web serverFile/dir permission conundrumWhy, by design, are group permissions ignored for the owner of a file?How to view files that have read permission only in my present working directory?Home directory file permissions screwed up, how do I “start over”?Linux Setuid special permission flag with read/writeUnix File Permissions and Decryption with OpenSSL's enc commandElasticsearch cannot open log file: Permission denied





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-2















I have 3 files in the directory q1,



enter image description here



q1 is executable of q1.c and 'secret' is a file with no read permissions (except the owner). Another way to read the file is by using q1.c (content below in pic ):
enter image description here



Can anyone help me in knowing how can I view the content of 'secret'?










share|improve this question









New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Jeff Schaller 2 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

    – Jeff Schaller
    2 hours ago











  • I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

    – Rick Williams
    2 hours ago











  • Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

    – Rick Williams
    2 hours ago


















-2















I have 3 files in the directory q1,



enter image description here



q1 is executable of q1.c and 'secret' is a file with no read permissions (except the owner). Another way to read the file is by using q1.c (content below in pic ):
enter image description here



Can anyone help me in knowing how can I view the content of 'secret'?










share|improve this question









New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Jeff Schaller 2 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

    – Jeff Schaller
    2 hours ago











  • I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

    – Rick Williams
    2 hours ago











  • Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

    – Rick Williams
    2 hours ago














-2












-2








-2


1






I have 3 files in the directory q1,



enter image description here



q1 is executable of q1.c and 'secret' is a file with no read permissions (except the owner). Another way to read the file is by using q1.c (content below in pic ):
enter image description here



Can anyone help me in knowing how can I view the content of 'secret'?










share|improve this question









New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have 3 files in the directory q1,



enter image description here



q1 is executable of q1.c and 'secret' is a file with no read permissions (except the owner). Another way to read the file is by using q1.c (content below in pic ):
enter image description here



Can anyone help me in knowing how can I view the content of 'secret'?







linux permissions kali-linux c






share|improve this question









New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago









Jeff Schaller

45.3k1164147




45.3k1164147






New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









Rick WilliamsRick Williams

1




1




New contributor




Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Rick Williams is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Jeff Schaller 2 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Jeff Schaller 2 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

    – Jeff Schaller
    2 hours ago











  • I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

    – Rick Williams
    2 hours ago











  • Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

    – Rick Williams
    2 hours ago



















  • Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

    – Jeff Schaller
    2 hours ago











  • I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

    – Rick Williams
    2 hours ago











  • Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

    – Rick Williams
    2 hours ago

















Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

– Jeff Schaller
2 hours ago





Become the q1 user and cat secret; otherwise, you're asking how to overflow/exploit the setuid compiled C program.

– Jeff Schaller
2 hours ago













I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

– Rick Williams
2 hours ago





I'm not sure how can I become the q1 user as I'm not the file owner and these files in the picture are provided by my teacher to try.

– Rick Williams
2 hours ago













Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

– Rick Williams
2 hours ago





Can you also explain how to exploit setuid for this situation, please? I remember our teacher mentioning it.

– Rick Williams
2 hours ago










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...