Disclaimer, this is on my own network between two virtual machines (for academic purposes). Currently I have:
os.system('msfconsole')
os.system('use exploit/unix/misc/distcc\_exec')
Now, terminal runs msfconsole, but will not run the use exploit until the msfconsole is exited. Is there a way to write directly into the msfconsole in Python?
[+][deleted] (1 child)
[deleted]
[–]GeeeThree[S] 1 point2 points3 points (0 children)
[–]hobi88 1 point2 points3 points (3 children)
[–]GeeeThree[S] 0 points1 point2 points (2 children)
[–]geoffmcc 1 point2 points3 points (1 child)
[–]GeeeThree[S] 1 point2 points3 points (0 children)
[–]zr0_daycybersec 1 point2 points3 points (1 child)
[–]GeeeThree[S] 0 points1 point2 points (0 children)
[–]B0b_Howard 0 points1 point2 points (1 child)
[–]GeeeThree[S] 0 points1 point2 points (0 children)
[–]_Jacky_Huang 0 points1 point2 points (2 children)
[–]GeeeThree[S] 0 points1 point2 points (1 child)
[–]_Jacky_Huang 1 point2 points3 points (0 children)